add dlerror message for static-linked dlsym failure

This commit is contained in:
Rich Felker 2014-08-08 00:53:27 -04:00
parent dc65fddd4c
commit 4fe57cad70
1 changed files with 2 additions and 0 deletions

View File

@ -1609,6 +1609,8 @@ void *dlopen(const char *file, int mode)
}
void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra)
{
errflag = 1;
snprintf(errbuf, sizeof errbuf, "Symbol not found: %s", s);
return 0;
}
int __dladdr (const void *addr, Dl_info *info)