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

Florian Weimer fw@deneb.enyo.de
Sun Nov 1 13:38:12 GMT 2026


* Domen Kožar:

> Questions for review:
> 1. Are these restrictions sufficient for an opt-in cache, or should
> the loader detect stale records before using them?
> 2. Should the note bind its records to the object's DT_RUNPATH and
> DT_NEEDED values from the outset?
> 3. Would extending ld.so.cache be preferable, and how should it
> preserve each requesting object's RUNPATH search order?

This has come up in other contexts, often with very long
LD_LIBRARY_PATH search paths (typically in an HPC setting with Spack).

I think Rich Felker suggested just to pre-populate a dedicated
directory with symbolic links, as a form of cache.  The magic RUNPATH
for the main program could point to that.  Have you tried this
approach?


More information about the Libc-alpha mailing list