4 ms·
I tried to do this recently at $DAYJOB, but when you statically link a binary with musl, the dlopen() you get is a no-op: https://github.com/bpowers/musl/blob/
by mappu 3y ago
I tried to do this recently at $DAYJOB, but when you statically link a binary with musl, the dlopen() you get is a no-op:
https://github.com/bpowers/musl/blob/master/src/ldso/dlopen.c https://github.com/bpowers/musl/blob/master/src/ldso/dlopen....
I tried to hack in a copy of the musl's dynamic loader (and also from old uclibc). But it took a few hours and my only result was segfaults.
Do you have any pointers on making this work?
- enriquto 3y agoHave you tried it with glibc? It's harder to build static binaries with it, but it's still possible, and it may work. To debug your problem, do you have a minimal example at your fingertips to try? Just a "hello world" dynlib that is called from a static program that doesn't do anything else.