This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Bug#62008: ld leaves hidden/internal symbols in the symbol table (Patch Included)
- To: Ulrich Drepper <drepper at redhat dot com>
- Subject: Re: Bug#62008: ld leaves hidden/internal symbols in the symbol table (Patch Included)
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sun, 9 Apr 2000 11:15:02 -0700
- Cc: Chip Salzenberg <chip at valinux dot com>,binutils at sourceware dot cygnus dot com, nickc at cygnus dot com,loewis at informatik dot hu-berlin dot de
- References: <20000407181927.H451@perlsupport.com> <20000407211236.A830@valinux.com> <m3k8i95hjq.fsf@localhost.localnet>
On Fri, Apr 07, 2000 at 09:43:21PM -0700, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
>
> > > /* XXX: The ABI draft says the linker must turn hidden and
> > > internal symbols into STB_LOCAL symbols when producing the
> > > DSO. However, if ld.so honors st_other in the dynamic table,
> > > this would not be necessary. */
>
> No!!! This is wrong! .hidden and .protected must jump through the
> PLT. This is part of the whole plan. If it does not work with the
> current ld.so.: too bad. This is brand new functionality. Wait for
> glibc 2.2 or appropriately changed loaders on other architectures.
>
>
From what I read in the gABI draft, STV_PROTECTED works like -Bsymbolic
on one symbol and STV_HIDDEN works like -Bsymbolic plus local symbol
in symbol versioning script. For STV_HIDDEN, maybe local symbol is
enough.
I'd like to fix it in binutils 2.10. Or we should back all of them
out.
H.J.