move dlclose out of dynlink.c to its own source file
authorRich Felker <dalias@aerifal.cx>
Mon, 25 Jan 2016 23:53:40 +0000 (18:53 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 25 Jan 2016 23:53:40 +0000 (18:53 -0500)
src/ldso/dlclose.c [new file with mode: 0644]
src/ldso/dynlink.c

diff --git a/src/ldso/dlclose.c b/src/ldso/dlclose.c
new file mode 100644 (file)
index 0000000..0ef2231
--- /dev/null
@@ -0,0 +1,9 @@
+#include <dlfcn.h>
+
+__attribute__((__visibility__("hidden")))
+int __dl_invalid_handle(void *);
+
+int dlclose(void *p)
+{
+       return __dl_invalid_handle(p);
+}
index 4f857e5ac0144777d39021941bd6f1faaa4d0a17..d2c5c3f6b2876f62129ba56cc40ad1a94593c3fe 100644 (file)
@@ -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);