This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH}: Add .rodata sections to CRX linker script
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Mon, 22 May 2006 09:48:56 +0100
- Subject: [PATCH}: Add .rodata sections to CRX linker script
Hi Guys,
I am going to apply the patch below to add an entry for .rodata
sections to the CRX linker script. Lack of this entry was causing
an error message to reported during one of the linker tests for the
crx-elf toolchains.
Cheers
Nick
ld/ChangeLog
2006-05-22 Nick Clifton <nickc@redhat.com>
* scripttempl/elf32crx.sc (.rdata): Add .rodata.*.
Index: ld/scripttempl/elf32crx.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elf32crx.sc,v
retrieving revision 1.3
diff -c -3 -p -r1.3 elf32crx.sc
*** ld/scripttempl/elf32crx.sc 16 Sep 2004 16:24:50 -0000 1.3
--- ld/scripttempl/elf32crx.sc 22 May 2006 08:41:46 -0000
*************** SECTIONS
*** 73,79 ****
.rdata :
{
__RDATA_START = .;
! *(.rdata_4) *(.rdata_2) *(.rdata_1) *(.rdata.*) *(.gnu.linkonce.r.*)
__RDATA_END = .;
} > rom
--- 73,79 ----
.rdata :
{
__RDATA_START = .;
! *(.rdata_4) *(.rdata_2) *(.rdata_1) *(.rdata.*) *(.gnu.linkonce.r.*) *(.rodata.*)
__RDATA_END = .;
} > rom