| OLD | NEW |
| 1 #include <dlfcn.h> | 1 #include <dlfcn.h> |
| 2 #include "libc.h" | 2 #include "libc.h" |
| 3 | 3 |
| 4 __attribute__((__visibility__("hidden"))) | 4 __attribute__((__visibility__("hidden"))) void __dl_seterr(const char*, ...); |
| 5 void __dl_seterr(const char *, ...); | |
| 6 | 5 |
| 7 static void *stub_dlsym(void *restrict p, const char *restrict s, void *restrict
ra) | 6 static void* stub_dlsym(void* restrict p, |
| 8 { | 7 const char* restrict s, |
| 9 » __dl_seterr("Symbol not found: %s", s); | 8 void* restrict ra) { |
| 10 » return 0; | 9 __dl_seterr("Symbol not found: %s", s); |
| 10 return 0; |
| 11 } | 11 } |
| 12 | 12 |
| 13 weak_alias(stub_dlsym, __dlsym); | 13 weak_alias(stub_dlsym, __dlsym); |
| OLD | NEW |