aboutsummaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-10 17:17:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-10 17:17:50 +0000
commit6cb1bc7e67e65faecdafc169b0f897645bb8ea83 (patch)
tree5de830a0f7b2557b5e0afc4ec9490f9723253eaf /nuttx
parented4550ff485a872b343c8e51697c9810f37e2a9a (diff)
downloadpx4-firmware-6cb1bc7e67e65faecdafc169b0f897645bb8ea83.tar.gz
px4-firmware-6cb1bc7e67e65faecdafc169b0f897645bb8ea83.tar.bz2
px4-firmware-6cb1bc7e67e65faecdafc169b0f897645bb8ea83.zip
Oop. Part of last change was still in the editor
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5226 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/binfmt/libnxflat/gnu-nxflat-pcrel.ld13
1 files changed, 9 insertions, 4 deletions
diff --git a/nuttx/binfmt/libnxflat/gnu-nxflat-pcrel.ld b/nuttx/binfmt/libnxflat/gnu-nxflat-pcrel.ld
index eb79023d0..71e4399ba 100644
--- a/nuttx/binfmt/libnxflat/gnu-nxflat-pcrel.ld
+++ b/nuttx/binfmt/libnxflat/gnu-nxflat-pcrel.ld
@@ -97,6 +97,15 @@ SECTIONS
*(.call_table_data)
*(.call_table_text)
+ /* In this model, .rodata is access using PC-relative addressing
+ * and, hence, must also reside in the .text section.
+ */
+
+ *(.rodata)
+ *(.rodata1)
+ *(.rodata.*)
+ *(.gnu.linkonce.r*)
+
_etext = . ;
} > ISPACE
@@ -108,10 +117,6 @@ SECTIONS
.data 0x00000000 :
{
__data_start = . ;
- *(.rodata)
- *(.rodata1)
- *(.rodata.*)
- *(.gnu.linkonce.r*)
*(.data)
*(.data1)
*(.data.*)