diff options
| author | Victor Mignot <victor@vmignot.fr> | 2026-02-02 20:17:04 +0100 |
|---|---|---|
| committer | Victor Mignot <victor@vmignot.fr> | 2026-02-02 20:17:04 +0100 |
| commit | fb859c9c85688d1a144b732cf688746f2651be40 (patch) | |
| tree | c666b23a1f865945a224c2b2f1026f0227141135 /link.ld | |
| download | nanji-fb859c9c85688d1a144b732cf688746f2651be40.tar.gz | |
nrf52832: bootstrap and init the CLOCK device
Diffstat (limited to 'link.ld')
| -rw-r--r-- | link.ld | 51 |
1 files changed, 51 insertions, 0 deletions
@@ -0,0 +1,51 @@ +MEMORY { + FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000 + RAM (rwx): ORIGIN = 0x20000000, LENGTH = 0x10000 +} + +SECTIONS { + .vector_table ORIGIN(FLASH) : + { + *(.vector_table .vector_table.*); + } > FLASH + + .text : + { + *(.text .text.*); + } > FLASH + + .rodata : + { + *(.rodata .rodata.*); + } > FLASH + + .bss : ALIGN(4) + { + __bss_start = .; + + *(.bss .bss.*); + + . = ALIGN(4); + __bss_end = .; + } > RAM + + .data : ALIGN(4) + { + __data_start = .; + + *(.data .data.*); + + . = ALIGN(4); + __data_end = .; + } > RAM AT > FLASH + + __data_lma = LOADADDR(.data); + + /DISCARD/ : + { + *(.ARM.exidx .ARM.exidx.*); + } + + /* Start the stack from the end of the RAM */ + __stack_top = ORIGIN(RAM) + LENGTH(RAM); +} |
