summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/libnxflat
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-10 19:36:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-10 19:36:32 +0000
commit28d780560dd246be31c87400195386870c539ed0 (patch)
treea7e079e6eb35c02ca4bc048c099c84b4b19ab2c5 /nuttx/binfmt/libnxflat
parentb9886dbddd398372e73f3aeeb3c16255ee157d8f (diff)
downloadnuttx-28d780560dd246be31c87400195386870c539ed0.tar.gz
nuttx-28d780560dd246be31c87400195386870c539ed0.tar.bz2
nuttx-28d780560dd246be31c87400195386870c539ed0.zip
More fixes for ldnxflat. There are still problems with the GCC 4.6.3
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5227 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt/libnxflat')
-rw-r--r--nuttx/binfmt/libnxflat/gnu-nxflat-gotoff.ld5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/binfmt/libnxflat/gnu-nxflat-gotoff.ld b/nuttx/binfmt/libnxflat/gnu-nxflat-gotoff.ld
index c0487212a..47debd663 100644
--- a/nuttx/binfmt/libnxflat/gnu-nxflat-gotoff.ld
+++ b/nuttx/binfmt/libnxflat/gnu-nxflat-gotoff.ld
@@ -107,11 +107,16 @@ SECTIONS
.data 0x00000000 :
{
+ /* In this model, .rodata is access using PC-relative addressing
+ * and, hence, must also reside in the .text section.
+ */
+
__data_start = . ;
*(.rodata)
*(.rodata1)
*(.rodata.*)
*(.gnu.linkonce.r*)
+
*(.data)
*(.data1)
*(.data.*)