summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/shenzhou/scripts')
-rw-r--r--nuttx/configs/shenzhou/scripts/ld.script8
-rw-r--r--nuttx/configs/shenzhou/scripts/ld.script.dfu8
2 files changed, 14 insertions, 2 deletions
diff --git a/nuttx/configs/shenzhou/scripts/ld.script b/nuttx/configs/shenzhou/scripts/ld.script
index f07d4432d..c9140291c 100644
--- a/nuttx/configs/shenzhou/scripts/ld.script
+++ b/nuttx/configs/shenzhou/scripts/ld.script
@@ -63,10 +63,16 @@ SECTIONS
_etext = ABSOLUTE(.);
} > flash
+ .init_section : {
+ _sinit = ABSOLUTE(.);
+ *(.init_array .init_array.*)
+ _einit = ABSOLUTE(.);
+ } > flash
+
__exidx_start = ABSOLUTE(.);
.ARM.exidx : {
*(.ARM.exidx*)
- } >flash
+ } > flash
__exidx_end = ABSOLUTE(.);
_eronly = ABSOLUTE(.);
diff --git a/nuttx/configs/shenzhou/scripts/ld.script.dfu b/nuttx/configs/shenzhou/scripts/ld.script.dfu
index b9d94c7a0..c6d0d76b8 100644
--- a/nuttx/configs/shenzhou/scripts/ld.script.dfu
+++ b/nuttx/configs/shenzhou/scripts/ld.script.dfu
@@ -65,10 +65,16 @@ SECTIONS
_etext = ABSOLUTE(.);
} > flash
+ .init_section : {
+ _sinit = ABSOLUTE(.);
+ *(.init_array .init_array.*)
+ _einit = ABSOLUTE(.);
+ } > flash
+
__exidx_start = ABSOLUTE(.);
.ARM.exidx : {
*(.ARM.exidx*)
- } >flash
+ } > flash
__exidx_end = ABSOLUTE(.);
_eronly = ABSOLUTE(.);