summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-08-08 00:53:27 -0400
committerRich Felker <dalias@aerifal.cx>2014-08-08 00:53:27 -0400
commit4fe57cad709fdfb377060ab2bac4b7b187956282 (patch)
tree4f9afad68ff4cfc49fa277c080d0f06ec8546352 /src/ldso/dynlink.c
parentdc65fddd4c793cdabcdf77b8e4b857b62026c2c8 (diff)
downloadmusl-4fe57cad709fdfb377060ab2bac4b7b187956282.tar.gz
add dlerror message for static-linked dlsym failure
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c2
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)