123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- ENTRY(Reset_Handler)
- _estack = 0x20002000
- _Min_Heap_Size = 0x200
- _Min_Stack_Size = 0x400
- MEMORY
- {
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
- FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 64K
- }
- SECTIONS
- {
-
- .isr_vector :
- {
- . = ALIGN(4)
- KEEP(*(.isr_vector))
- . = ALIGN(4)
- } >FLASH
-
- .text :
- {
- . = ALIGN(4)
- *(.text)
- *(.text*)
- *(.glue_7)
- *(.glue_7t)
- *(.eh_frame)
- KEEP (*(.init))
- KEEP (*(.fini))
- . = ALIGN(4)
- _etext = .
- } >FLASH
-
- .rodata :
- {
- . = ALIGN(4)
- *(.rodata)
- *(.rodata*)
- . = ALIGN(4)
- } >FLASH
- .ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
- .ARM : {
- __exidx_start = .
- *(.ARM.exidx*)
- __exidx_end = .
- } >FLASH
- .preinit_array :
- {
- PROVIDE_HIDDEN (__preinit_array_start = .)
- KEEP (*(.preinit_array*))
- PROVIDE_HIDDEN (__preinit_array_end = .)
- } >FLASH
- .init_array :
- {
- PROVIDE_HIDDEN (__init_array_start = .)
- KEEP (*(SORT(.init_array.*)))
- KEEP (*(.init_array*))
- PROVIDE_HIDDEN (__init_array_end = .)
- } >FLASH
- .fini_array :
- {
- PROVIDE_HIDDEN (__fini_array_start = .)
- KEEP (*(SORT(.fini_array.*)))
- KEEP (*(.fini_array*))
- PROVIDE_HIDDEN (__fini_array_end = .)
- } >FLASH
-
- _sidata = LOADADDR(.data)
-
- .data :
- {
- . = ALIGN(4)
- _sdata = .
- *(.data)
- *(.data*)
- . = ALIGN(4)
- _edata = .
- } >RAM AT> FLASH
-
-
- . = ALIGN(4)
- .bss :
- {
-
- _sbss = .
- __bss_start__ = _sbss
- *(.bss)
- *(.bss*)
- *(COMMON)
- . = ALIGN(4)
- _ebss = .
- __bss_end__ = _ebss
- } >RAM
-
- ._user_heap_stack :
- {
- . = ALIGN(8)
- PROVIDE ( end = . )
- PROVIDE ( _end = . )
- . = . + _Min_Heap_Size
- . = . + _Min_Stack_Size
- . = ALIGN(8)
- } >RAM
-
-
- /DISCARD/ :
- {
- libc.a ( * )
- libm.a ( * )
- libgcc.a ( * )
- }
- .ARM.attributes 0 : { *(.ARM.attributes) }
- }
|