Yocto prelink status

Phil Blundell pb@pbcl.net
Fri Jan 21 17:09:11 GMT 2022


On Fri, Jan 21, 2022 at 04:23:20PM +0000, Szabolcs Nagy wrote:
> 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.)

Yes.  There are actually three problems with large number of RELATIVE relocs:

1. They take up a lot of space in .rel.dyn or equivalent which causes binary
bloat.

2. All of them need to be processed at startup (you can't do them lazily) and
this adds delay before you get to main()

3. Data pages that have had relocations applied to them are now dirty and
unshareable so they occupy more space in memory.

As I understand DT_RELR it solves the first of these but not the other two.

Phil


More information about the Libc-alpha mailing list