| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- MEMORY
- {
- RAM (rwx) : ORIGIN = RAM_START, LENGTH = RAM_LENGTH
- FLASH (rx) : ORIGIN = FLASH_START, LENGTH = FLASH_LENGTH
- DATA_FLASH (rx) : ORIGIN = DATA_FLASH_START, LENGTH = DATA_FLASH_LENGTH
- OPTION_SETTING_OFS0 (r) : ORIGIN = OPTION_SETTING_OFS0_START, LENGTH = OPTION_SETTING_OFS0_LENGTH
- OPTION_SETTING_OFS1 (r) : ORIGIN = OPTION_SETTING_OFS1_START, LENGTH = OPTION_SETTING_OFS1_LENGTH
- OPTION_SETTING_SECMPU (r) : ORIGIN = OPTION_SETTING_SECMPU_START, LENGTH = OPTION_SETTING_SECMPU_LENGTH
- OPTION_SETTING_OSIS (r) : ORIGIN = OPTION_SETTING_OSIS_START, LENGTH = OPTION_SETTING_OSIS_LENGTH
- FLASH_GAP (rx) : ORIGIN = FLASH_GAP_START, LENGTH = FLASH_GAP_LENGTH
- }
- /* code entry point...need to define to keep crt0 _start out */
- ENTRY( Reset_Handler)
- /* Library configurations */
- GROUP(libgcc.a libc.a libm.a)
- SECTIONS
- {
- .text :
- {
- /* section information for finsh shell */
- . = ALIGN(4);
- __fsymtab_start = .;
- KEEP(*(FSymTab))
- __fsymtab_end = .;
- . = ALIGN(4);
- __vsymtab_start = .;
- KEEP(*(VSymTab))
- __vsymtab_end = .;
- /* section information for initial. */
- . = ALIGN(4);
- __rt_init_start = .;
- KEEP(*(SORT(.rti_fn*)))
- __rt_init_end = .;
- . = ALIGN(4);
- KEEP(*(FalPartTable))
- }> FLASH
- /***** DATA_FLASH memory section allocations ******/
- .data_flash.startof :
- {
- __ddsc_DATA_FLASH_START = .;
- }> DATA_FLASH
- /***** RAM memory section allocations ******/
- .ram.startof :
- {
- __ddsc_RAM_START = .;
- }> RAM
- __ram_dtc_vector$$ (NOLOAD) :
- {
- __ram_dtc_vector$$Base = .;
- *(.fsp_dtc_vector_table)
- __ram_dtc_vector$$Limit = .;
- }> RAM
- /* ram initialized from data_flash */
- __ram_from_data_flash$$ :
- {
- __ram_from_data_flash$$Base = .;__ram_from_data_flash$$Load = LOADADDR(__ram_from_data_flash$$);
- /* section.ram.from_data_flash */
- *(.ram_from_data_flash)
- /* section.ram.code_from_data_flash */
- *(.ram_code_from_data_flash)
- __ram_from_data_flash$$Limit = .;
- }> RAM AT > DATA_FLASH
- __data_flash_readonly$$ :
- {
- __data_flash_readonly$$Base = .;
- /* section.data_flash.readonly */
- *(.data_flash)
- /* section.data_flash.code */
- *(.data_flash_code)
- __data_flash_readonly$$Limit = .;
- }> DATA_FLASH
- __data_flash_noinit$$ (NOLOAD) :
- {
- __data_flash_noinit$$Base = .;
- /* section.data_flash.noinit */
- *(.data_flash_noinit)
- __data_flash_noinit$$Limit = .;
- }> DATA_FLASH
- .data_flash.endof :
- {
- . = ALIGN(512);
- __ddsc_DATA_FLASH_END = .;
- }> DATA_FLASH
- /***** FLASH memory section allocations ******/
- .flash.startof :
- {
- __ddsc_FLASH_START = .;
- }> FLASH_GAP
- /* MCU vector table */
- __flash_vectors$$ :
- {
- __flash_vectors$$Base = .; _VECTORS = .;
- KEEP(*(.fixed_vectors))
- KEEP(*(.application_vectors))
- __flash_vectors$$Limit = .;
- }> FLASH_GAP
- /* Sections that can be used to fill flash gap */
- __flash_readonly_gap$$ :
- {
- __flash_readonly_gap$$Base = .;
- /* section.flash.readonly_gap */
- *bsp_linker.?*(.rodata.*)
- *(.flash_gap)
- /* section.flash.code_gap */
- *(.flash_gap_code)
- __flash_readonly_gap$$Limit = .;
- }> FLASH_GAP
- /***** FLASH memory section allocations ******/
- __flash_noinit$$ (NOLOAD) :
- {
- __flash_noinit$$Base = .;
- /* section.flash.noinit */
- *(.flash_noinit)
- __flash_noinit$$Limit = .;
- }> FLASH
- /***** RAM memory section allocations ******/
- /* ram initialized from flash */
- __ram_from_flash$$ :
- {
- __ram_from_flash$$Base = .;__ram_from_flash$$Load = LOADADDR(__ram_from_flash$$);
- /* section.ram.from_flash */
- *(.ram_from_flash)
- /* section.ram.code_from_flash */
- *(.ram_code_from_flash)
- *(.data*)
- *(vtable)
- __ram_from_flash$$Limit = .;
- }> RAM AT > FLASH
- /* Non-initialized ram */
- __ram_noinit$$ (NOLOAD) :
- {
- __ram_noinit$$Base = .;
- /* section.ram.noinit */
- *(.bss.g_heap)
- *(.bss.g_main_stack)
- *(.ram_noinit)
- *(.noinit)
- __ram_noinit$$Limit = .;
- }> RAM
- /* Zeroed ram */
- __ram_zero$$ (NOLOAD) :
- {
- __ram_zero$$Base = .;
- /* section.ram.zero */
- *(.ram)
- *(.bss*)
- __ram_zero$$Limit = .;
- }> RAM
- /* Thread Stacks */
- __ram_thread_stack$$ (NOLOAD) : ALIGN(8)
- {
- __ram_thread_stack$$Base = .;
- KEEP(*(.stack?*))
- __ram_thread_stack$$Limit = .;
- }> RAM
- .ram.endof ALIGN(.,512) :
- {
- __ddsc_RAM_END = .;
- }> RAM
- __flash_readonly$$ :
- {
- __flash_readonly$$Base = .;
- /* section.flash.readonly */
- *(.flash)
- /* section.flash.code */
- *(.flash_code)
- *(.text*)
- *(.rodata*)
- KEEP(*(.mcuboot_sce9_key))
- KEEP(*(.version))
- __flash_readonly$$Limit = .;
- }> FLASH
- __flash_ctor$$ :
- {
- *crtbegin.o(.ctors)
- *crtbegin?.o(.ctors)
- EXCLUDE_FILE (*crtend?.o *crtend.o) *(.ctors)
- *(SORT(.ctors.*))
- *(.ctors)
- *crtbegin.o(.dtors)
- *crtbegin?.o(.dtors)
- EXCLUDE_FILE (*crtend?.o *crtend.o) *(.dtors)
- *(SORT(.dtors.*))
- *(.dtors)
- }> FLASH
- __flash_preinit_array$$ :
- {
- __preinit_array_start = .;
- KEEP(*(.preinit_array))
- __preinit_array_end = .;
- }> FLASH
- __flash_.got$$ :
- {
- *(.got.plt)
- *(.got)
- }> FLASH
- __flash_init_array$$ :
- {
- __init_array_start = .;
- KEEP(*(SORT(.init_array.*)))
- KEEP(*(.init_array))
- __init_array_end = .;
- }> FLASH
- __flash_fini_array$$ :
- {
- __fini_array_start = .;
- KEEP(*(SORT(.fini_array.*)))
- KEEP(*(.fini_array))
- __fini_array_end = .;
- }> FLASH
- /* Discard exception tables */
- /DISCARD/ :
- {
- *(.ARM.extab*)
- *(.gnu.linkonce.armextab.*)
- *(.ARM.exidx*)
- *(.gnu.linkonce.armexidx.*)
- }> FLASH
- /* Dummy section to hold required exidx labels */
- __flash_arm.exidx$$ :
- {
- __exidx_start = .;
- __exidx_end = .;
- }> FLASH
- .flash.endof ALIGN(.,512) :
- {
- __ddsc_FLASH_END = .;
- }> FLASH
- /***** OPTION_SETTING_OFS0 memory section allocations ******/
- .option_setting_ofs0.startof :
- {
- __ddsc_OPTION_SETTING_OFS0_START = .;
- }> OPTION_SETTING_OFS0
- /* Option Function Select Register 0 */
- __option_setting_ofs0_reg$$ :
- {
- __option_setting_ofs0_reg$$Base = .;
- KEEP(*(.option_setting_ofs0))
- __option_setting_ofs0_reg$$Limit = .;
- }> OPTION_SETTING_OFS0
- .option_setting_ofs0.endof :
- {
- __ddsc_OPTION_SETTING_OFS0_END = .;
- }> OPTION_SETTING_OFS0
- /***** OPTION_SETTING_OFS1 memory section allocations ******/
- .option_setting_ofs1.startof :
- {
- __ddsc_OPTION_SETTING_OFS1_START = .;
- }> OPTION_SETTING_OFS1
- /* Option Function Select Register 1 */
- __option_setting_ofs1_reg$$ :
- {
- __option_setting_ofs1_reg$$Base = .;
- KEEP(*(.option_setting_ofs1))
- __option_setting_ofs1_reg$$Limit = .;
- }> OPTION_SETTING_OFS1
- .option_setting_ofs1.endof :
- {
- __ddsc_OPTION_SETTING_OFS1_END = .;
- }> OPTION_SETTING_OFS1
- /***** OPTION_SETTING_SECMPU memory section allocations ******/
- .option_setting_secmpu.startof :
- {
- __ddsc_OPTION_SETTING_SECMPU_START = .;
- }> OPTION_SETTING_SECMPU
- /* Security MPU Registers */
- __option_setting_secmpu_reg$$ :
- {
- __option_setting_secmpu_reg$$Base = .;
- KEEP(*(.option_setting_secmpu))
- __option_setting_secmpu_reg$$Limit = .;
- }> OPTION_SETTING_SECMPU
- .option_setting_secmpu.endof :
- {
- __ddsc_OPTION_SETTING_SECMPU_END = .;
- }> OPTION_SETTING_SECMPU
- /***** OPTION_SETTING_OSIS memory section allocations ******/
- .option_setting_osis.startof :
- {
- __ddsc_OPTION_SETTING_OSIS_START = .;
- }> OPTION_SETTING_OSIS
- /* OCD/Serial Programmer ID setting register */
- __option_setting_osis_reg$$ :
- {
- __option_setting_osis_reg$$Base = .;
- KEEP(*(.option_setting_osis))
- __option_setting_osis_reg$$Limit = .;
- }> OPTION_SETTING_OSIS
- .option_setting_osis.endof :
- {
- __ddsc_OPTION_SETTING_OSIS_END = .;
- }> OPTION_SETTING_OSIS
- }
|