NANO130: Fix OOM with packing algorithm at IAR linking

At IAR linking, the default method of 'initialize by copy' is 'auto', which will estimate
different packing algorithms, including complex 'lz77', for smallest memory footprint. But
the algorithm itself can consume some SRAM and cause OOM at linking time for NANO130, which
just has 16KiB SRAM. To avoid this error, always choose 'none' packing algorithm.
pull/12047/head
Chun-Chieh Li 2019-12-09 13:48:31 +08:00
parent 8d246d8ac1
commit 6df5eea841
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
initialize by copy { readwrite };
initialize by copy with packing = none { readwrite };
do not initialize { section .noinit };
place at address mem:__ICFEDIT_intvec_start__ { block ROMVEC };