Yocto prelink status

Szabolcs Nagy szabolcs.nagy@arm.com
Fri Jan 21 16:23:20 GMT 2022


The 01/21/2022 11:58, Phil Blundell via Libc-alpha wrote:
> On Thu, Jan 20, 2022 at 10:51:31PM +0000, Richard Purdie via Libc-alpha wrote:
> > Bottom line was that there was some very slight speed ups and the memory usage
> > was possibly worse with prelink but it was marginal. With other more specific
> > test cases and libraries with complex/large symbol tables, the results may be
> > different.
> 
> The benefits of prelink tend to be more noticeable with large C++ DSOs because
> they have a lot of RELATIVE relocs which can be eliminated entirely during
> prelinking.  JUMP_SLOTs are resolved lazily in any case so the benefit of
> doing that in advance is smaller, and most modern programs don't have a lot
> of GLOB_DATs at all.

glibc plans to support the DT_RELR format for more compact representation
of relative relocs. see bug 27924.

(i believe this is used on android/chromeos for the reason you cited.)


More information about the Libc-alpha mailing list