diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-01-25 18:53:40 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-01-25 18:53:40 -0500 |
commit | da1fe7f5008e7068f17147ee7c47e4c71a61d057 (patch) | |
tree | ed3ae13f3ae96f86cae972cb3124212f996d7f69 /src/ldso | |
parent | 891e6547b4fdec10fe4ffa3b1ef5ddb524bcde39 (diff) | |
download | musl-da1fe7f5008e7068f17147ee7c47e4c71a61d057.tar.gz musl-da1fe7f5008e7068f17147ee7c47e4c71a61d057.tar.bz2 musl-da1fe7f5008e7068f17147ee7c47e4c71a61d057.tar.xz musl-da1fe7f5008e7068f17147ee7c47e4c71a61d057.zip |
move dlclose out of dynlink.c to its own source file
Diffstat (limited to 'src/ldso')
-rw-r--r-- | src/ldso/dlclose.c | 9 | ||||
-rw-r--r-- | src/ldso/dynlink.c | 5 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ldso/dlclose.c b/src/ldso/dlclose.c new file mode 100644 index 00000000..0ef22319 --- /dev/null +++ b/src/ldso/dlclose.c @@ -0,0 +1,9 @@ +#include <dlfcn.h> + +__attribute__((__visibility__("hidden"))) +int __dl_invalid_handle(void *); + +int dlclose(void *p) +{ + return __dl_invalid_handle(p); +} diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 4f857e5a..d2c5c3f6 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -1940,11 +1940,6 @@ int __dlinfo(void *dso, int req, void *res) return 0; } -int dlclose(void *p) -{ - return __dl_invalid_handle(p); -} - __attribute__((__visibility__("hidden"))) void __dl_vseterr(const char *, va_list); |