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 cygnus dot com>
- Subject: Re: Bug#62008: ld leaves hidden/internal symbols in the symbol table (Patch Included)
- From: Chip Salzenberg <chip at valinux dot com>
- Date: Sat, 8 Apr 2000 16:30:26 -0700
- Cc: "H . J . Lu" <hjl at valinux dot com>, binutils at sourceware dot cygnus dot com
- References: <20000407181927.H451@perlsupport.com> <20000407211236.A830@valinux.com> <m3k8i95hjq.fsf@localhost.localnet>
According to Ulrich Drepper:
> > > /* 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.
I agree with you that making these symbols STB_LOCAL is a bad idea.
In fact, I considered that to be the bug and was planning to fix it
until I found the above comment and realized it was intentional.
If you could help me with info, please: What is this "ABI draft"
mentioned in the comment, where is it, and who's working on it?
> If it does not work with the current ld.so.: too bad. This is brand
> new functionality.
Well, then, does libstdc++-v3 needs to check something more than gas
support before it uses '.hidden'?
--
Chip Salzenberg - a.k.a. - <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
but he stepped in a wormhole and had to go in early." // MST3K