Segregated dynamic linking with libcapsule
Vivek Dasmohapatra
libcapsule is a project that allows segregated dynamic linking:
Access to the symbols of a library without being exposed to any of the dependencies of that library without requiring recompilation of the binary that pulls it in.
The goal is to improve portability of programs that are distributed with runtimes (cf flatpak) that still need access to some libraries from the host (eg libGL).
The background is here:
https://people.collabora.com/~vivek/dynamic-linking/segregated-dynamic-linking.pdf
And the actual working code is here: