Get the latest tech news
Superlinker: A tool for reinterpreting ELF executables and shared libraries
a tool for reinterpreting ELF executables and shared libraries - whitequark/superlinker
Superlinker is structured essentially like a compiler whose inputs and outputs are interpreted programs (ELF ET_DYN PIE executables or shared libraries). The intermediate representation features architecture-, target-, and (somewhat) format-independent model of loadable segments, relocations, symbols, and image interpreters, biased towards ELF without directly requiring it. The implementation is less than a thousand lines long, written with portability in mind, and extensively commented, so it should not be too difficult to address most of these flaws.
Or read this on Hacker News