From: Rich Felker Date: Fri, 8 Aug 2014 04:53:27 +0000 (-0400) Subject: add dlerror message for static-linked dlsym failure X-Git-Tag: v1.1.5~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fe57cad709fdfb377060ab2bac4b7b187956282;p=oweals%2Fmusl.git add dlerror message for static-linked dlsym failure --- 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)