summaryrefslogtreecommitdiff
path: root/Project/ld/_flash.ld
diff options
context:
space:
mode:
Diffstat (limited to 'Project/ld/_flash.ld')
-rw-r--r--Project/ld/_flash.ld33
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
+}