[RFC PATCH] elf: Add opt-in per-object resolution notes
Carlos O'Donell
carlos@redhat.com
Tue Nov 3 22:09:25 GMT 2026
On 11/3/26 5:01 PM, Sam James wrote:
> 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.
Agreed.
This is primarily the reason we stopped doing prelink.
The live mutation of the binaries on disk meant we invalidated testing
and any certifications we'd made about the binaries.
There were many other reasons, but shipping exactly what you tested was
one of them.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list