This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [I don't think it's off-topic at all] Linking speed for C++



> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]