From 4fe57cad709fdfb377060ab2bac4b7b187956282 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 8 Aug 2014 00:53:27 -0400 Subject: add dlerror message for static-linked dlsym failure --- src/ldso/dynlink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index aa1b99ad..c90fe99a 100644 --- 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) -- cgit v1.2.3-70-g09d2