From da1fe7f5008e7068f17147ee7c47e4c71a61d057 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 25 Jan 2016 18:53:40 -0500 Subject: [PATCH] move dlclose out of dynlink.c to its own source file --- src/ldso/dlclose.c | 9 +++++++++ src/ldso/dynlink.c | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 src/ldso/dlclose.c 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 + +__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); -- 2.25.1