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

40 lines
1.7 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-09-23 13:42:09 +08:00
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
2020-06-20 14:08:14 +08:00
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x00000000;
/*-Memory Regions-*/
2020-09-23 13:42:09 +08:00
define symbol __ICFEDIT_region_text_start__ = 0x10000000;
define symbol __ICFEDIT_region_text_end__ = 0x1002FFFF;
2020-09-23 13:42:09 +08:00
define symbol __ICFEDIT_region_data_start__ = 0x10030000;
define symbol __ICFEDIT_region_data_end__ = 0x1003FFFF;
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-09-23 13:42:09 +08:00
define region text_region = mem:[from __ICFEDIT_region_text_start__ to __ICFEDIT_region_text_end__];
define region data_region = mem:[from __ICFEDIT_region_data_start__ to __ICFEDIT_region_data_end__];
keep { section .resource_table };
".resource_table" : place in data_region {section .resource_table};
/* Create region for OPENAMP */
/* !!! These 4 lines can be commented if OPENAMP is not used !!!*/
define symbol __OPENAMP_region_start__ = 0x10040000;
define symbol __OPENAMP_region_size__ = 0x8000;
export symbol __OPENAMP_region_start__;
export symbol __OPENAMP_region_size__;
2020-06-20 14:08:14 +08:00
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
2020-09-23 13:42:09 +08:00
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
2020-06-20 14:08:14 +08:00
initialize by copy { readwrite };
2020-09-23 13:42:09 +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-09-23 13:42:09 +08:00
place in text_region { readonly };
place in data_region { readwrite,
block CSTACK, block HEAP};