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