RFA: Add more read-only sections to the sparc cygwin linker scripts.
Jeff Johnston
jjohnstn@redhat.com
Wed Feb 14 19:41:00 GMT 2007
Nick Clifton wrote:
> 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 ?
>
No, please go ahead. Thanks.
-- Jeff J.
> 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*)
>
>
More information about the Newlib
mailing list