From 6cb1bc7e67e65faecdafc169b0f897645bb8ea83 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 10 Oct 2012 17:17:50 +0000 Subject: 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 --- nuttx/binfmt/libnxflat/gnu-nxflat-pcrel.ld | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'nuttx') 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.*) -- cgit v1.2.3