[krbdev.mit.edu #3316] evaluate use of ELF symbol visibility pragmas for smaller code, GOT, PLT

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Wed Dec 28 18:36:06 EST 2005


On Dec 28, 2005, at 18:16, Sam Hartman via RT wrote:
> My personal opinion is that if we can do this in a manner where we
> guarantee that the symbol visibility and export lists do not conflict
> then we should do so.

There are two main types of conflict there.

First, a symbol marked hidden/internal but in the export list.  From  
a test I did a little while ago, it appears that it wouldn't show up  
in the dynamic symbol table.  I was thinking of adding a test program  
that would walk through the export list and try calling dlsym on each  
symbol.

Second, a symbol with default visibility but not in the export list.   
This would be okay, it's just likely to be less efficient.  Though  
for platforms where visibility is supported but export lists are not  
(are there any?), it might be desirable to run nm and examine the  
output for unrecognized, defined symbols.

> We should also make sure that in cases where features we need are not
> available we do not use them.

Yup.

Ken




More information about the krb5-bugs mailing list