News for hackers. Stuff that matters.
Re:Solo – a .so loader for static Linux binaries by mochaa on Wednesday August 19, 2026 @01:40PM (#49364661)
if you really want a single elf that could link to system libraries with a foreign libc (you shouldn't), the somehow correct-ish way to do it is map your preferred ldso manually , setup stack, call DT_ENTRY etc etc like how kernel does it, and just yank the libdl symbols.

see cosmo_dlopen for an example implementation.

Re:Solo – a .so loader for static Linux binaries by pg83 on Wednesday August 19, 2026 @01:41PM (#49364682)
The README.md link describes cosmopolitan's approach, among other things, and it's worse than mine.