Your patch on 2001-01-26 is bad

Richard Henderson rth@redhat.com
Tue Feb 6 21:26:00 GMT 2001
On Tue, Feb 06, 2001 at 08:38:22PM -0800, H . J . Lu wrote:
> STV_PROTECTED has the global visibility. It is the dynamic
> linker which handles it.

I don't believe you.  If correct, this visibility level
is completely pointless.

As I understand things:

  STV_HIDDEN:	Resolve locally, and not included in the
		dynamic symbol table.

  STV_INTERNAL:	Same.  Technically target dependant, but the
		interpretation I remember being suggested is
		that this is an assertion that the object is
		never seen even indirectly outside the dso.

  STV_PROTECTED: Resolved locally, but included in the
		dynamic symbol table.

That we _know_ this will be resolved locally implies that
we can optimize things at link time.  Why bother leaving
this for the loader?


r~


More information about the Binutils mailing list