All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Detour: A Static Library Enabling Dynamic Linking in Statically Linked Linux Executables

By

generichuman

7mo ago· 6 min readenCode

Summary

Detour is a static library for Linux that enables building statically linked executables while still providing dynamic linking capabilities at runtime. It allows developers to dlopen libraries, resolve symbols, and mix multiple C runtimes in the same process without linking against libc directly, bridging the gap between static and dynamic linking approaches.

Key quotes

· 3 pulled
Detour lets you build statically linked executables, with no dependency on glibc or musl while still giving you access to dynamic linking at runtime.
You can dlopen libraries, resolve symbols, and even mix multiple C runtimes in the same process, all without ever linking against libc directly.
On Linux, the traditional divide between statically and dynamically linked executables can feel like a hard wall. Either you bundle everything into your binary, or you accept full dependency on the system's libc and dynamic linker.
Snippet from the RSS feed
A detour through the Linux dynamic linker. Contribute to graphitemaster/detour development by creating an account on GitHub.

You might also wanna read