Dynamic Linking with MUSL?

Almost everything is dynamically linked to save every possible KB in persistent storage and also ram.
Also x86_64 is dynamically linked!
This doesn't depends on the used c library and is true for glibc, musl and also the old uclibc.

Another important point is if for example the openssl library has a vulnerability, then only the dynamic library has to be updated with an ABI compatible version instead of recompiling every binary that is statically linked against the vulnerable openssl library.

So in short, you will find only a few binaries that are statically linked against libraries and this will have a good reason to do so.

2 Likes