from the musl libc FAQ
Q: Where is ldd?
musl’s dynamic linker comes with ldd functionality built in. Just create a symlink from ld-musl-$ARCH.so to /bin/ldd. If the dynamic linker was started as “ldd”, it will detect that and print the appropriate DSO information.
Inspecting ld-musl-$ARCH.so
I found that it's a symlink to the musl /usr/local/musl/lib/libc.so
and that is definitely a shared library
$ file /usr/local/musl/lib/libc.so
/usr/local/musl/lib/libc.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=068deca2fec0ea2c50ec1e11166d25b3bb057431, not stripped
And it actually works which is nuts lol. I can actually do this:
$ /usr/local/musl/lib/libc.so ./a.out
And it will work. But how is it possible that I can invoke a shared library from the terminal?