Skip to main content

Module resolver

Module resolver 

Source
Expand description

The dynamic linker resolver.

This models the glibc loader’s search algorithm rather than looking for matching filenames. The target binary is never executed and ldd is never called.

Re-exports§

pub use cache::LdCache;
pub use tokens::TokenContext;

Modules§

cache
Direct /etc/ld.so.cache reading and writing.
search
Library search directories: ld.so.conf and the architecture defaults.
tokens
Expansion of the dynamic string tokens glibc understands in DT_RPATH/DT_RUNPATH: $ORIGIN, $LIB and $PLATFORM.

Structs§

LibraryRequest
A single DT_NEEDED lookup, with all loader state it depends on.
ResolutionNote
A library the loader inside the bundle would not find on its own.
ResolvedLibrary
Resolver

Enums§

SearchOrigin
Where a lookup succeeded. Only some of these survive into the bundle: --library-path is a hint to elfpak and the packaged application never sees it.

Traits§

DynamicLinkerResolver
Loader-specific resolution, kept behind a trait so the implementation can be replaced (or wrapped for tracing) without touching the planner.