diff options
author | Clément Vasseur <clement.vasseur@gmail.com> | 2014-08-07 17:49:29 +0200 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-08-08 00:47:59 -0400 |
commit | dc65fddd4c793cdabcdf77b8e4b857b62026c2c8 (patch) | |
tree | 4337bf49ec26af47e39336a26aaa61083023ff39 /src/ldso | |
parent | b1ae7b78bd57c60451e56c4abf738c69245b2b0e (diff) | |
download | musl-dc65fddd4c793cdabcdf77b8e4b857b62026c2c8.tar.gz musl-dc65fddd4c793cdabcdf77b8e4b857b62026c2c8.tar.bz2 musl-dc65fddd4c793cdabcdf77b8e4b857b62026c2c8.tar.xz musl-dc65fddd4c793cdabcdf77b8e4b857b62026c2c8.zip |
fix dlerror when using dlopen with a static libc
when the dynamic loader is disabled, dlopen fails correctly but dlerror
did not return a human readable error string like it should have.
Diffstat (limited to 'src/ldso')
-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 12f14f7b..aa1b99ad 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -1603,6 +1603,8 @@ static int invalid_dso_handle(void *h) } void *dlopen(const char *file, int mode) { + strcpy(errbuf, "Dynamic loading not supported"); + errflag = 1; return 0; } void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra) |