dldota 0.1.0

Load shared libraries from statically linked programs by bootstrapping the system's own dynamic loader
Documentation
1
2
3
4
5
6
//! The synthesized in-memory "main program" handed to `ld.so` via `AT_PHDR`.
//!
//! It carries `PT_PHDR`/`PT_LOAD`/`PT_DYNAMIC`, a `.dynamic` with
//! `DT_NEEDED libc.so.6`, and `GLOB_DAT` relocations that make `ld.so` fill a
//! GOT with `dlopen`, `dlsym`, `dlclose`, `dlerror`, ... for us. `AT_ENTRY`
//! points at the arch entry thunk that returns control to `bootstrap()`.