This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RFA: Add more read-only sections to the sparc cygwin linker scripts.
- From: Nick Clifton <nickc at redhat dot com>
- To: jjohnstn at redhat dot com
- Cc: newlib at sourceware dot org
- Date: Wed, 14 Feb 2007 17:31:06 +0000
- Subject: RFA: Add more read-only sections to the sparc cygwin linker scripts.
Hi Jeff,
Running the gcc testsuite for a sparc-elf toolchain built from
recent sources will produce lots of failures with this linker error
message:
error: no memory region specified for loadable section
`.rodata.str1.8'
The fix seems to be add this section (and others like it) to the
cygmon linker scripts, as in the patch below. Any objections to
applying it ?
Cheers
Nick
libgloss/ChangeLog
2007-02-14 Nick Clifton <nickc@redhat.com>
* sparc/cygmon.ld.src: Link .rodata.* input sections into .text
output section.
* sparc/cygmon-sparc64-ld.src: Likewise.
Index: libgloss/sparc/cygmon.ld.src
===================================================================
RCS file: /cvs/src/src/libgloss/sparc/cygmon.ld.src,v
retrieving revision 1.1
diff -c -3 -p -r1.1 cygmon.ld.src
*** libgloss/sparc/cygmon.ld.src 17 Mar 2000 22:48:52 -0000 1.1
--- libgloss/sparc/cygmon.ld.src 14 Feb 2007 17:29:08 -0000
*************** SECTIONS
*** 91,96 ****
--- 91,97 ----
*(.init)
*(.lit)
*(.rodata)
+ *(.rodata.*)
*(.shdata)
*(.eh_frame)
*(.gnu.linkonce.t*)
Index: libgloss/sparc/cygmon-sparc64-ld.src
===================================================================
RCS file: /cvs/src/src/libgloss/sparc/cygmon-sparc64-ld.src,v
retrieving revision 1.1
diff -c -3 -p -r1.1 cygmon-sparc64-ld.src
*** libgloss/sparc/cygmon-sparc64-ld.src 17 Mar 2000 22:48:52 -0000 1.1
--- libgloss/sparc/cygmon-sparc64-ld.src 14 Feb 2007 17:29:08 -0000
*************** SECTIONS
*** 87,92 ****
--- 87,93 ----
*(.init)
*(.lit)
*(.rodata)
+ *(.rodata.*)
*(.shdata)
*(.eh_frame)
*(.gnu.linkonce.t*)