move dlclose out of dynlink.c to its own source file

This commit is contained in:
Rich Felker 2016-01-25 18:53:40 -05:00
parent 891e6547b4
commit da1fe7f500
2 changed files with 9 additions and 5 deletions

9
src/ldso/dlclose.c Normal file
View File

@ -0,0 +1,9 @@
#include <dlfcn.h>
__attribute__((__visibility__("hidden")))
int __dl_invalid_handle(void *);
int dlclose(void *p)
{
return __dl_invalid_handle(p);
}

View 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);