diff options
author | Oxore <oxore@protonmail.com> | 2022-10-09 02:54:07 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-10-09 02:57:01 +0300 |
commit | b1c8bb5df090d65cdd37a7acafb5dee8e3c530c6 (patch) | |
tree | 04e77389b96ed575bff7810ebb71857eff7e3b46 /Project/ld/_flash.ld | |
parent | 59651845feac3c6a2cb8e91e7494fd0e7940d145 (diff) |
Add CMakeLists.txt and make it compile with GCC
Diffstat (limited to 'Project/ld/_flash.ld')
-rw-r--r-- | Project/ld/_flash.ld | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Project/ld/_flash.ld b/Project/ld/_flash.ld new file mode 100644 index 0000000..ec94ea7 --- /dev/null +++ b/Project/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 +} |