about summary refs log tree commit diff
path: root/src/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldso')
-rw-r--r--src/ldso/dlclose.c9
-rw-r--r--src/ldso/dynlink.c5
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);