1 2 3 4 5 6 7 8 9 10
#define _GNU_SOURCE #include <dlfcn.h> #include "libc.h" static int stub_dladdr(const void *addr, Dl_info *info) { return 0; } weak_alias(stub_dladdr, dladdr);