diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-08-08 00:53:27 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-08-08 00:53:27 -0400 |
commit | 4fe57cad709fdfb377060ab2bac4b7b187956282 (patch) | |
tree | 4f9afad68ff4cfc49fa277c080d0f06ec8546352 | |
parent | dc65fddd4c793cdabcdf77b8e4b857b62026c2c8 (diff) | |
download | musl-4fe57cad709fdfb377060ab2bac4b7b187956282.tar.gz |
add dlerror message for static-linked dlsym failure
-rw-r--r-- | src/ldso/dynlink.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |