projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc65fdd
)
add dlerror message for static-linked dlsym failure
author
Rich Felker
<dalias@aerifal.cx>
Fri, 8 Aug 2014 04:53:27 +0000
(
00:53
-0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 8 Aug 2014 04:53:27 +0000
(
00:53
-0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index aa1b99ad30fcf16e5aaa1af7f2b5a72a45bf8ae4..c90fe99afc41bb3537a3d238528facd2443d0e94 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-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)