aboutsummaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu')
-rw-r--r--nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu30
1 files changed, 18 insertions, 12 deletions
diff --git a/nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu b/nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu
index 87acb12f9..c20a6224f 100644
--- a/nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu
+++ b/nuttx/configs/olimex-stm32-p107/scripts/ld.script.dfu
@@ -47,10 +47,10 @@ SECTIONS
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
- *(.text .text.*)
+ *(.text .text.*)
*(.fixup)
*(.gnu.warning)
- *(.rodata .rodata.*)
+ *(.rodata .rodata.*)
*(.gnu.linkonce.t.*)
*(.glue_7)
*(.glue_7t)
@@ -60,6 +60,22 @@ SECTIONS
_etext = ABSOLUTE(.);
} > flash
+ .init_section : {
+ _sinit = ABSOLUTE(.);
+ *(.init_array .init_array.*)
+ _einit = ABSOLUTE(.);
+ } > flash
+
+ .ARM.extab : {
+ *(.ARM.extab*)
+ } > flash
+
+ __exidx_start = ABSOLUTE(.);
+ .ARM.exidx : {
+ *(.ARM.exidx*)
+ } > flash
+ __exidx_end = ABSOLUTE(.);
+
_eronly = ABSOLUTE(.);
/* The STM32F103Z has 64Kb of SRAM beginning at the following address */
@@ -72,16 +88,6 @@ SECTIONS
_edata = ABSOLUTE(.);
} > sram AT > flash
- .ARM.extab : {
- *(.ARM.extab*)
- } >sram
-
- __exidx_start = ABSOLUTE(.);
- .ARM.exidx : {
- *(.ARM.exidx*)
- } >sram
- __exidx_end = ABSOLUTE(.);
-
.bss : {
_sbss = ABSOLUTE(.);
*(.bss .bss.*)