add dlerror message for static-linked dlsym failure
This commit is contained in:
parent
dc65fddd4c
commit
4fe57cad70
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue