Mark `model_input` and `output_header` as NOLOAD
- Mark sections that are expected to be populated by the program at
runtime as NOLOAD, so that objcopy can create more reasonably sized
bins.
Change-Id: I10e19f72565e3fc28400308eb3e29f386309126d
diff --git a/crt/kelvin.ld b/crt/kelvin.ld
index e88d047..6ba2437 100644
--- a/crt/kelvin.ld
+++ b/crt/kelvin.ld
@@ -157,7 +157,7 @@
* responsible for copying (TfLite) it or informing the model where it is
* if the model can take input from any location (IREE).
*/
- .model_input : {
+ .model_input (NOLOAD) : {
__model_input_start__ = .;
*(.model_input)
__model_input_end__ = .;
@@ -167,7 +167,7 @@
* Model output information (return code and output location/length) is
* always at the end of TCM.
*/
- .output_header ORIGIN(MODEL_HEADER) + (4096 - __output_header_size__) : ALIGN(4) {
+ .output_header ORIGIN(MODEL_HEADER) + (4096 - __output_header_size__) (NOLOAD) : ALIGN(4) {
__output_header_start__ = .;
_ret = .; /* NB: memory location for model return value (aka ModelHeader::return_code) */
*(.model_output_header*)