This is the mail archive of the
gcc@gcc.gnu.org
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: Tue, 22 May 2001 13:12:26 -0700
- Cc: Fergus Henderson <fjh at cs dot mu dot oz dot au>, Marc Espie <espie at quatramaran dot ens dot fr>, gcc at gcc dot gnu dot org
- References: <20010522194117.A24588@murlibobo.cs.mu.OZ.AU> <200105221854.LAA29219@toledo.synopsys.com>
On Tue, May 22, 2001 at 11:54:01AM -0700, Joe Buck wrote:
> > So is there some reason why the KDE shared libs can't be linked with
> > `-Bsymbolic'? Would linking them with `-Bsymbolic' improve startup times?
> > Has anyone tried this?
>
> It won't suffice because a relocation will still be needed: the vtable
> entries point to absolute addresses.
While it's true that it does not completely eliminate the
dynamic relocation, it does (or should) eliminate a symbol
lookup -- eg an R_386_32 relocation should be replaced by
an R_386_RELATIVE relocation which is considerably simpler
to process.
> That's why I made a proposal for an optional modified vtable
> format, which would incorporate the equivalent of -Bsymbolic.
Also worth persuing in the 3.1 timeframe...
r~