提交 4fe57cad 编写于 作者: R Rich Felker

add dlerror message for static-linked dlsym failure

上级 dc65fddd
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册