[I don't think it's off-topic at all] Linking speed for C++
Joe Buck
jbuck@synopsys.COM
Tue May 22 12:00:00 GMT 2001
> 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
More information about the Gcc
mailing list