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

Sam James sam@gentoo.org
Wed Nov 4 17:35:25 GMT 2026


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

> Hi Carlos, Sam,
>
> One clarification about the proposed workflow: the notes are written
> during the package build, after the other ELF fixups. The intended
> sequence is to generate the notes, test and sign the resulting
> artifacts, then distribute those artifacts unchanged. ld.so only reads
> the mapped notes. There is no runtime rewriting of installed binaries
> or background cache regeneration.

Yes, that helps. I couldn't (and can't) read the patch yet because of
the LLM policy issue. 'cache' confused me here. Thanks for clarifying.

> [...]
>
> An audit implementation would therefore need additional machinery to
> preserve missing-candidate fallback, runtime directory hints,
> hardware-capability selection, and per-requester decisions. Native
> loader support can insert the cache lookup between environment search
> and RUNPATH and reuse the existing search and error-handling paths.
> This is a correctness and integration consideration; we have not
> established a performance advantage over a complete audit
> implementation.

That was a suggestion based on my assumption of it mutating
binaries.

> Does the build-time-only writing and read-only runtime behavior
> address the artifact-mutation concern?

It does but I don't love the idea of the situation becoming more
complicated: already explaining RPATH vs RUNPATH is painful.

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/20261104/c07c95bc/attachment.sig>


More information about the Libc-alpha mailing list