This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Your patch on 2001-01-26 is bad
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: Re: Your patch on 2001-01-26 is bad
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 6 Feb 2001 21:26:24 -0800
- Cc: binutils at sourceware dot cygnus dot com
- References: <20010206203822.A10129@valinux.com>
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~