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)


> 1. Does your patch implement STV_PROTECTED?

AFAICT, yes. There is not that much to do, though: the assembler has
to recognize the .protected directive, and set st_other
appropriately. objdump and friends are now capable of printing the
symbol. If the static linker sees two different visibilities for a
symbol, it takes the stronges one.

The real semantics of STV_PROTECTED (i.e. non-preemptability) must be
implemented in the dynamic linker.

> 2. As I said before, STV_HIDDEN can be treated as local symbol in
> the symbol versioning. It should work with glibc.

I still question that claim. STV_HIDDEN symbols must go through the
PLT, or PIC code won't work.

Regards,
Martin

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