This is the mail archive of the
mailing list for the binutils project.
Re: GCC testsuite run before and after ~2.12.1 upgraded to pre-2.13
Jason R Thorpe <firstname.lastname@example.org> 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:
> append.o (the test program)
> libc.a (or libc.so)
> libm.a (or libm.so)
> 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