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: fjh at cs dot mu dot oz dot au (Fergus 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 11:54:01 -0700 (PDT)
- Cc: rth at redhat dot com (Richard Henderson), espie at quatramaran dot ens dot fr (Marc Espie), gcc at gcc dot gnu dot org
> On 21-May-2001, Richard Henderson <rth@redhat.com> wrote:
> > On Tue, May 22, 2001 at 01:52:54AM +0200, Marc Espie wrote:
> > > Isn't there at least a simple way to tell ELF to stop being dumb and
> > > just resolve the symbol here & now ?
> >
> > Three ways:
> >
> > -Bsymbolic
> [...]
>
> 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. That's why I made a proposal for
an optional modified vtable format, which would incorporate the equivalent
of -Bsymbolic. See
http://gcc.gnu.org/ml/gcc/2001-05/msg00419.html