[RFC PATCH] elf: Add opt-in per-object resolution notes

Sam James sam@gentoo.org
Tue Nov 3 22:01:20 GMT 2026


Domen Kožar <domen@dev.si> writes:

> Hello,
>
> Programs with long DT_RUNPATH lists can spend many failed file lookups
> resolving each library at startup. This patch lets glibc use
> per-object ELF notes containing precomputed library paths to avoid
> repeated directory searches.

I'm not sure we want to go in this direction. I'm not comfortable with
ld.so mutating binaries on-disk.

I've not used the audit hooks but do wonder if you could use them for
that without this functionality being upstream.

sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 418 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20261103/1c3cbc04/attachment.sig>


More information about the Libc-alpha mailing list