On Sun, 2 Jul 2023, Emmanuel Dreyfus wrote:
On Sat, Jul 01, 2023 at 02:25:03PM +0000, RVP wrote:Not to forget the code for C++ support. And, of course even static binaries may call dlopen() and friends. So that dl*() and the ELF bits right there.At least in 9.3, dlopen() in a static binary does not work. Try using a NSS module from a statically lunked binary to check that.
Ah, that's right: dl*() + static binary doesn't work on -HEAD either (unlike in Glibc where this _does_ work). I should've remembered since I
looked into this for pin@ some time back. iconv*(), unsurprisingly, errors out too and those __dl*() in static binaries are just stubs put there to return an error instead of just crashing if the binary tries to do a dlopen(). Thanks! -RVP