mirror of git://git.musl-libc.org/musl
add dlerror message for static-linked dlsym failure
This commit is contained in:
parent
dc65fddd4c
commit
4fe57cad70
|
@ -1609,6 +1609,8 @@ void *dlopen(const char *file, int mode)
|
||||||
}
|
}
|
||||||
void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
int __dladdr (const void *addr, Dl_info *info)
|
int __dladdr (const void *addr, Dl_info *info)
|
||||||
|
|
Loading…
Reference in New Issue