diff options
Diffstat (limited to 'app/ld/_flash.ld')
-rw-r--r-- | app/ld/_flash.ld | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/ld/_flash.ld b/app/ld/_flash.ld new file mode 100644 index 0000000..ec94ea7 --- /dev/null +++ b/app/ld/_flash.ld @@ -0,0 +1,33 @@ +SECTIONS { + . = ORIGIN(FLASH); + .text : { + KEEP(*(.stack)) + KEEP(*(.vectors)) + KEEP(*(.vectors*)) + KEEP(*(.text)) + . = ALIGN(4); + *(.text*) + . = ALIGN(4); + KEEP(*(.rodata)) + *(.rodata*) + . = ALIGN(4); + } >FLASH + + .preinit_array ALIGN(4): { + __preinit_array_start = .; + KEEP(*(.preinit_array)) + __preinit_array_end = .; + } >FLASH + + .init_array ALIGN(4): { + __init_array_start = .; + KEEP(*(.init_array)) + __init_array_end = .; + } >FLASH + + .fini_array ALIGN(4): { + __fini_array_start = .; + KEEP(*(.fini_array)) + __fini_array_end = .; + } >FLASH +} |