Make Solaris global ABI syms STT_OBJECT and STV_HIDDEN Solaris
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Tue Feb 17 14:09:58 GMT 2026
Hi Alan,
> PR 33177
> * emultempl/solaris2.em (elf_solaris_before_allocation): Make
> globals defined here STV_PROTECTED and STT_OBJECT. Use
> elf_backend_hide_symbol rather that just setting forced_local
> for local ABI syms.
thanks a lot for your amazing work here. I've just regtested binutils
natively on {i386,amd64}-pc-solaris2.11 and sparc{,v9}-sun-solaris2.11:
all remaining testsuite failures are gone now.
Just two issues:
* The subject claims to make the ABI symbols STV_HIDDEN when in fact it
makes them STV_PROTECTED (and there's a dangling 'Solaris' at the end).
* Right now it makes *all* of them STV_PROTECTED, while ld only does
this for _GLOBAL_OFFSET_TABLE_ as I'd found when testing the previous
version of this patch. I'd made the trivial adjustment to fix this at
the time.
Apart from that, the resulting executables and shared objects pass my
WIP mini testsuite attached to the PR, but that didn't noticed the
visibiliby difference yet.
I'll do full GCC trunk builds with the patched gld just in case.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Binutils
mailing list