diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-01-25 18:58:06 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-01-25 18:58:06 -0500 |
commit | 14469371cd1efd2be44f0825fec9ad8bb3216da9 (patch) | |
tree | 16cc02e9d50c8cd7ad662bfcf03658fa6ab98cda /src/ldso/dlopen.c | |
parent | b98414732d230c236b9a79c709c2b035ca67be12 (diff) | |
download | musl-14469371cd1efd2be44f0825fec9ad8bb3216da9.tar.gz musl-14469371cd1efd2be44f0825fec9ad8bb3216da9.tar.bz2 musl-14469371cd1efd2be44f0825fec9ad8bb3216da9.tar.xz musl-14469371cd1efd2be44f0825fec9ad8bb3216da9.zip |
move static-linked stub dlopen out of dynlink.c
Diffstat (limited to 'src/ldso/dlopen.c')
-rw-r--r-- | src/ldso/dlopen.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ldso/dlopen.c b/src/ldso/dlopen.c new file mode 100644 index 00000000..dcdb4398 --- /dev/null +++ b/src/ldso/dlopen.c @@ -0,0 +1,13 @@ +#include <dlfcn.h> +#include "libc.h" + +__attribute__((__visibility__("hidden"))) +void __dl_seterr(const char *, ...); + +static void *stub_dlopen(const char *file, int mode) +{ + __dl_seterr("Dynamic loading not supported"); + return 0; +} + +weak_alias(stub_dlopen, dlopen); |