[Toybox] Where does the dynamic linker live in cross compile toolchains?
Rob Landley
rob at landley.net
Sun Jul 19 21:49:34 UTC 2026
I'm trying to update mkroot/packages/dynamic and in theory I can
${CROSS_COMPILE}cc --print-file-name=libc.so and then copy all the
shared libraries and symlinks out of that directory, but I don't know
how to find and install the dynamic linker out of a compiler toolchain.
In musl-libc it's a symlink to libc.so so I can just do that, and I've
got to admit I don't care about glibc that much, but I can't find the
dynamic linker binary anywhere under the Android NDK?
Bionic's libc.so is executable so maybe it pulls the same trick, but I
have yet to find a way to invoke it that isn't an immediate segfault
so... dunno?
In musl, running it gives a --version dump:
$ x86_64-linux-musl/lib/libc.so
musl libc (x86_64)
Version 1.2.5
Dynamic Program Loader
Usage: x86_64-linux-musl/lib/libc.so [options] [--] pathname [args]
Rob
More information about the Toybox
mailing list