How neonatox/neonatox-rldispatcher works
nrld is a freestanding x86-64 ELF dispatcher that lets glibc applications run on musl hosts using an isolated glibc sysroot. The main workflow detects the target, prepares its libraries and environment, then launches a patched copy through the real glibc loader; AppImages have an extraction and discovery branch. The preload proxy handles runtime path and ABI isolation. README claims support for these capabilities; source excerpts are partial, so some subsystem links rely on the README rather than sampled implementation details.
Main entry points: nrld.c ELF detection · appimages.c AppImage extraction · proxy_readlink.c Preload proxy · nrld.conf nrld settings
Components 17
Dispatch and launch
- Target ELF
nrld.c - ELF detection
nrld.c - Patched executable
nrld.c - glibc dynamic loader
- glibc application
Image and library resolution
- AppImage extraction
appimages.c - Internal binary
appimages.c - Library discovery
appimages.c - NEEDED guard
nrld.c - NEEDED path patch
nrld.c - glibc sysroot
Runtime isolation
- Preload proxy
proxy_readlink.c - Executable readlink
proxy_readlink.c - Strict dlopen guard
proxy_readlink.c
Runtime configuration
- nrld settings
nrld.conf - Loader environment
nrld.c
Other components
- User or host
Connections 21
- User or host → Target ELF: selects
README.md - User or host → ELF detection: invokes
README.md - ELF detection → AppImage extraction: extracts when needed
README.md - AppImage extraction → Internal binary: locates
appimages.c - AppImage extraction → Library discovery: collects directories
appimages.c - ELF detection → NEEDED guard: checks dependencies
README.md - NEEDED guard → glibc sysroot: resolves within
README.md - ELF detection → Library discovery: searches missing libraries
README.md - ELF detection → NEEDED path patch: patches absolute dependencies
README.md - NEEDED path patch → glibc sysroot: checks basename
README.md - nrld settings → Loader environment: configures
README.md - ELF detection → Loader environment: prepares
README.md - Loader environment → Patched executable: sets launch paths
README.md - ELF detection → Patched executable: creates and executes
README.md - Patched executable → glibc dynamic loader: sets PT_INTERP
README.md - glibc dynamic loader → glibc sysroot: loads libraries from
README.md - glibc dynamic loader → glibc application: starts
README.md - Loader environment → Preload proxy: preloads
README.md - Preload proxy → Executable readlink: intercepts
proxy_readlink.c - Preload proxy → Strict dlopen guard: enforces strict mode
proxy_readlink.c - Strict dlopen guard → glibc sysroot: checks library paths
proxy_readlink.c