Bug#62008: ld leaves hidden/internal symbols in the symbol table (Patch Included)
Chip Salzenberg
chip@valinux.com
Sat Apr 8 16:30:00 GMT 2000
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
More information about the Binutils
mailing list