__dlsym.c 288 B

1234567891011121314
  1. #include <dlfcn.h>
  2. #include "dynlink.h"
  3. static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict ra)
  4. {
  5. __dl_seterr("Symbol not found: %s", s);
  6. return 0;
  7. }
  8. weak_alias(stub_dlsym, __dlsym);
  9. #if _REDIR_TIME64
  10. weak_alias(stub_dlsym, __dlsym_redir_time64);
  11. #endif