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: rth at redhat dot com (Richard Henderson)
- Subject: Re: [I don't think it's off-topic at all] Linking speed for C++
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Tue, 22 May 2001 13:34:41 -0700 (PDT)
- Cc: jbuck at synopsys dot COM (Joe Buck), fjh at cs dot mu dot oz dot au (Fergus Henderson), espie at quatramaran dot ens dot fr (Marc Espie), gcc at gcc dot gnu dot org
>
> > > 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?
I wrote:
> > It won't suffice because a relocation will still be needed: the vtable
> > entries point to absolute addresses.
Richard Henderson wrote:
> 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.
Well, in that case some interested KDE developer might want to try using
-Bsymbolic and see if it improves startup times ...