This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug#62008: ld leaves hidden/internal symbols in the symbol table (Patch Included)


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]