This is the mail archive of the
mailing list for the GCC project.
Re: [I don't think it's off-topic at all] Linking speed for C++
- To: Joe Buck <jbuck at synopsys dot COM>
- Subject: Re: [I don't think it's off-topic at all] Linking speed for C++
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 10 May 2001 10:14:46 -0700
- Cc: Andreas Jaeger <aj at suse dot de>, biswapesh dot chattopadhyay at bt dot com, gcc at gcc dot gnu dot org, bastian at suse dot com
- References: <20010509154946.A26740@redhat.com> <200105100001.RAA29888@toledo.synopsys.com>
On Wed, May 09, 2001 at 05:01:18PM -0700, Joe Buck wrote:
> Or, of course, just break the ability to overload symbols for virtual
> functions. :-) The user waiting for his desktop to start up may not
Recently some symbol visibility flags were added to ELF. It
would be possible to change the compiler such that
class __attribute__((visibility(protected))) Foo
marked each member symbol of Foo with STV_PROTECTED, which
prevents this symbol from being overridden by another DSO.
Judicious use of this feature might reduce the number of
symbol relocations (vs relative relocations) substantially.