[PATCH] gas: Fix -mrelax-relocations detection on Solaris/x86 [PR19520]
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Thu Oct 16 06:54:01 GMT 2025
Hi H.J.,
>> For the case at hand, I don't mind since I'd prefer to remove
>> -mrelax-relocations for good since it was only ever created for the
>> benefit of Solaris 12/11.4, but has been unused/disabled for at least 7
>> years.
>
> Remove --enable-x86-relax-relocations is OK. But -mrelax-relocations=[no|yes]
> should stay since it is used in binutils tests. I don't see any
> issues for cross binutils.
fine with me. While the tests could be ripped out as I wrote, keeping
them has the undeniable advantage that the -mrelax-relocations=no case
is tested on all x86 ELF targets, apart from creating far less work for
me.
On top of that, GCC trunk will soon require binutils 2.30+ on Solaris.
This way, one can unconditionally use -mrelax-relocations=yes with gas
since Solaris 11.4 is the only OS version supported there. This way the
gotx relocs are also tested natively.
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Binutils
mailing list