|
5 | 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; |
6 | 6 | /*-Memory Regions-*/ |
7 | 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; |
8 | | -define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; |
| 8 | +define symbol __ICFEDIT_region_ROM_end__ = 0x080FFFFF; |
9 | 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; |
10 | | -define symbol __ICFEDIT_region_RAM_end__ = 0x2004FFFF; |
| 10 | +define symbol __ICFEDIT_region_RAM_end__ = 0x2002FFFF; |
11 | 11 | /*-Sizes-*/ |
12 | | -define symbol __ICFEDIT_size_cstack__ = 0x0400; |
13 | | -define symbol __ICFEDIT_size_heap__ = 0x0000; |
| 12 | +define symbol __ICFEDIT_size_cstack__ = 0x200; |
| 13 | +define symbol __ICFEDIT_size_heap__ = 0x000; |
14 | 14 | /**** End of ICF editor section. ###ICF###*/ |
15 | 15 |
|
| 16 | + |
16 | 17 | define memory mem with size = 4G; |
17 | | -define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; |
18 | | -define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; |
| 18 | +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; |
| 19 | +define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; |
19 | 20 |
|
20 | 21 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; |
| 22 | +define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; |
| 23 | +define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* }; |
21 | 24 |
|
22 | 25 | initialize by copy { readwrite }; |
23 | 26 | do not initialize { section .noinit }; |
24 | 27 |
|
| 28 | +keep { section FSymTab }; |
| 29 | +keep { section VSymTab }; |
| 30 | +keep { section .rti_fn* }; |
25 | 31 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; |
26 | 32 |
|
27 | | -place in ROM_region { readonly }; |
28 | | -place in RAM_region { readwrite, last block CSTACK}; |
| 33 | +place in ROM_region { readonly, block RTT_INIT_FUNC }; |
| 34 | +place in RAM_region { readwrite, block CSTACK, last block HEAP}; |
0 commit comments