Avoid 64-bit Solaris/SPARC -gstabs link failures (PR ld/12152)

David Miller davem@davemloft.net
Thu Mar 1 21:12:00 GMT 2012


From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Thu, 01 Mar 2012 20:05:51 +0100

> It seems this is a known issue and R_SPARC_32 relocs are already handled
> in bfd/elfxx-sparc.c (_bfd_sparc_elf_relocate_section).  The following
> patch handles R_SPARC_UA32 in the same way and makes all those failures
> go away.

Every time I've done significant work on the sparc BFD elf backend
I've looked at this piece of code and scratched my head.

I'd like to know why it's OK to just let the relocation overflow in
these cases, doesn't it make the debugging information unusable and
incorrect?



More information about the Binutils mailing list