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