7 ms·
IME you can statically link glibc, but your statically linked binary will still call ld.so.
by alanpost 11y ago
IME you can statically link glibc, but your statically linked binary will still call ld.so.
- mcguire 11y agoThe NSS stuff? And something else? There's some specific things that are supposed to be modular library-wise.
- edwintorok 11y agoI think you usually get a warning at link-time if you try to statically link GCC and use a function that requires matching libc version at runtime, getaddrinfo was the one I remembered but there are certainly more functions like that: x.c:(.text+0x85): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking