Prelinking of shared libraries

Andreas Jaeger aj@suse.de
Sat May 5 01:47:00 GMT 2001


On Sat, May 05, 2001 at 10:41:33AM +0200, Jakub Jelinek wrote:
> On Sat, May 05, 2001 at 09:19:51AM +0200, Andreas Jaeger wrote:
> > Exactly.  The idea is that the one configuration program (let's say
> > ldconfig) loads all libraries into its address space, prelinks them
> > and saves the prelinked files together with information where they
> > should be mmapped.  The dynamic linker then reads this information and
> > tries to mmap the prelinked libs into the same address as the
> > configuration program.  If the mmap fails, the lib will be loaded as
> > if it was not prelinked and relocated normally.
> 
> Note that the one configuration program has to work on most of system
> binaries as well in addition to all libraries (well, again, does not have to
> be all, just the most widely used majority).

Why has the configuration program to work on system binaries?

I agree, we have to add some way to define which libraries will be
prelinked and this should be configurable.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list