This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC testsuite run before and after ~2.12.1 upgraded to pre-2.13


Jason R Thorpe <thorpej@wasabisystems.com> writes:

> On Sat, Jul 20, 2002 at 11:22:54AM +0930, Alan Modra wrote:
> 
>  > Check all object files involved in the link, including libraries and
>  > startup files, for a RW .rodata section.  I'm guessing you'll find one,
>  > indicating an assembler or more likely, source problem.
> 
> That's what I figured.  No .rodata* sections with the "W" bit set in
> any of:
> 
> 	crt0.o
> 	crtbegin.o
> 	append.o (the test program)
> 	libc.a (or libc.so)
> 	libm.a (or libm.so)
> 	libgcc.a
> 	libstdc++.a
> 	crtend.o
> 
> The problem occurs when the program is linked statically, as well, but
> the dynamic linker isn't invokved, so it doesn't croak.

The write bit is being set somewhere, and it almost certainly because
some writable input section is being mapped to the .rodata output
section.  Generate a map file using the -Map option, and look at all
the input sections to the .rodata output section.  Perhaps some input
section named other than .rodata* is being included in the output
section.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]