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

David Miller davem@davemloft.net
Fri Mar 2 22:06:00 GMT 2012


From: Eric Botcazou <ebotcazou@adacore.com>
Date: Fri, 2 Mar 2012 22:53:34 +0100

>> Isn't Solaris using dwarf2 by now?  What blocks us from emitting
>> dwarf2 by default at least for 64-bit sparc under Solaris?
> 
> Nothing, as GCC has always emitted DWARF by default for SPARC/Solaris 64-bit 
> (otherwise you cannot debug) and switched to DWARF for SPARC/Solaris 32-bit a 
> while ago (when support for Solaris 2.5 and 2.6 was dropped).  These are just 
> totally meaningless testsuite failures for an option that cannot work, so we 
> can keep silently accepting it.

I think blocking such tests is the best option then.

I see no value in blindly allowing relocations to overflow when we
know that when it occurs something is very wrong.  Failing and
emitting an error is the right thing for 'ld' to do.



More information about the Binutils mailing list