rt-thread-official/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.icf

29 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-06-20 14:08:14 +08:00
/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
2020-06-20 16:37:37 +08:00
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
2020-06-20 14:08:14 +08:00
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
/*-Memory Regions-*/
2020-06-20 16:37:37 +08:00
define symbol __ICFEDIT_region_ROM_start__ = 0x10000000;
define symbol __ICFEDIT_region_ROM_end__ = 0x1003FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x10040000;
define symbol __ICFEDIT_region_RAM_end__ = 0x1005FFFF;
2020-06-20 14:08:14 +08:00
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x400;
define symbol __ICFEDIT_size_heap__ = 0x000;
/**** End of ICF editor section. ###ICF###*/
define memory mem with size = 4G;
2020-06-20 16:37:37 +08:00
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
2020-06-20 14:08:14 +08:00
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
initialize by copy { readwrite };
2020-06-20 16:37:37 +08:00
do not initialize { section .noinit };
2020-06-20 14:08:14 +08:00
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
2020-06-20 16:37:37 +08:00
place in ROM_region { readonly };
place in RAM_region { readwrite, last block CSTACK};