aboutsummaryrefslogtreecommitdiff
path: root/nuttx/configs/lpc4330-xplorer
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-04 17:18:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-04 17:18:25 +0000
commitbaeabacae3435daefab7ae41ab4e69cf96c613ca (patch)
treeac30163b79435767a2d5c7a4b350531bb945c3b9 /nuttx/configs/lpc4330-xplorer
parent9583fa1abd79dfcc8610d8dbb4cc6c4d91c3bb5f (diff)
downloadpx4-firmware-baeabacae3435daefab7ae41ab4e69cf96c613ca.tar.gz
px4-firmware-baeabacae3435daefab7ae41ab4e69cf96c613ca.tar.bz2
px4-firmware-baeabacae3435daefab7ae41ab4e69cf96c613ca.zip
Massive clean-up of linker scripts from Freddie Chopin
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5307 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lpc4330-xplorer')
-rw-r--r--nuttx/configs/lpc4330-xplorer/scripts/ramconfig.ld32
-rw-r--r--nuttx/configs/lpc4330-xplorer/scripts/spificonfig.ld32
2 files changed, 38 insertions, 26 deletions
diff --git a/nuttx/configs/lpc4330-xplorer/scripts/ramconfig.ld b/nuttx/configs/lpc4330-xplorer/scripts/ramconfig.ld
index f44d6181e..d95612020 100644
--- a/nuttx/configs/lpc4330-xplorer/scripts/ramconfig.ld
+++ b/nuttx/configs/lpc4330-xplorer/scripts/ramconfig.ld
@@ -88,10 +88,10 @@ SECTIONS
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
- *(.text .text.*)
+ *(.text .text.*)
*(.fixup)
*(.gnu.warning)
- *(.rodata .rodata.*)
+ *(.rodata .rodata.*)
*(.gnu.linkonce.t.*)
*(.glue_7)
*(.glue_7t)
@@ -101,7 +101,23 @@ SECTIONS
_etext = ABSOLUTE(.);
} > progmem
- _eronly = ABSOLUTE(.); /* See below */
+ .init_section : {
+ _sinit = ABSOLUTE(.);
+ *(.init_array .init_array.*)
+ _einit = ABSOLUTE(.);
+ } > progmem
+
+ .ARM.extab : {
+ *(.ARM.extab*)
+ } > progmem
+
+ __exidx_start = ABSOLUTE(.);
+ .ARM.exidx : {
+ *(.ARM.exidx*)
+ } > progmem
+ __exidx_end = ABSOLUTE(.);
+
+ _eronly = ABSOLUTE(.);
.data : {
_sdata = ABSOLUTE(.);
@@ -111,16 +127,6 @@ SECTIONS
_edata = ABSOLUTE(.);
} > datamem AT > progmem
- .ARM.extab : {
- *(.ARM.extab*)
- } >datamem
-
- .ARM.exidx : {
- __exidx_start = ABSOLUTE(.);
- *(.ARM.exidx*)
- __exidx_end = ABSOLUTE(.);
- } >datamem
-
.bss : { /* BSS */
_sbss = ABSOLUTE(.);
*(.bss .bss.*)
diff --git a/nuttx/configs/lpc4330-xplorer/scripts/spificonfig.ld b/nuttx/configs/lpc4330-xplorer/scripts/spificonfig.ld
index 1b8df48b2..8ed668bee 100644
--- a/nuttx/configs/lpc4330-xplorer/scripts/spificonfig.ld
+++ b/nuttx/configs/lpc4330-xplorer/scripts/spificonfig.ld
@@ -84,10 +84,10 @@ SECTIONS
.text : {
_stext = ABSOLUTE(.);
*(.vectors)
- *(.text .text.*)
+ *(.text .text.*)
*(.fixup)
*(.gnu.warning)
- *(.rodata .rodata.*)
+ *(.rodata .rodata.*)
*(.gnu.linkonce.t.*)
*(.glue_7)
*(.glue_7t)
@@ -97,7 +97,23 @@ SECTIONS
_etext = ABSOLUTE(.);
} > progmem
- _eronly = ABSOLUTE(.); /* See below */
+ .init_section : {
+ _sinit = ABSOLUTE(.);
+ *(.init_array .init_array.*)
+ _einit = ABSOLUTE(.);
+ } > progmem
+
+ .ARM.extab : {
+ *(.ARM.extab*)
+ } > progmem
+
+ __exidx_start = ABSOLUTE(.);
+ .ARM.exidx : {
+ *(.ARM.exidx*)
+ } > progmem
+ __exidx_end = ABSOLUTE(.);
+
+ _eronly = ABSOLUTE(.);
.data : {
_sdata = ABSOLUTE(.);
@@ -107,16 +123,6 @@ SECTIONS
_edata = ABSOLUTE(.);
} > datamem AT > progmem
- .ARM.extab : {
- *(.ARM.extab*)
- } >datamem
-
- .ARM.exidx : {
- __exidx_start = ABSOLUTE(.);
- *(.ARM.exidx*)
- __exidx_end = ABSOLUTE(.);
- } >datamem
-
.bss : { /* BSS */
_sbss = ABSOLUTE(.);
*(.bss .bss.*)