aboutsummaryrefslogtreecommitdiff
path: root/nuttx/binfmt
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
commitb71fcbb0de3d1e1ad8011303ade8bc38c83486d2 (patch)
treea7e079e6eb35c02ca4bc048c099c84b4b19ab2c5 /nuttx/binfmt
parent6cb1bc7e67e65faecdafc169b0f897645bb8ea83 (diff)
downloadpx4-firmware-b71fcbb0de3d1e1ad8011303ade8bc38c83486d2.tar.gz
px4-firmware-b71fcbb0de3d1e1ad8011303ade8bc38c83486d2.tar.bz2
px4-firmware-b71fcbb0de3d1e1ad8011303ade8bc38c83486d2.zip
More fixes for ldnxflat. There are still problems with the GCC 4.6.3
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5227 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/binfmt')
-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.*)