mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
nss: Directly load nss_dns, without going through dlsym/dlopen
This partially fixes static-only NSS support (bug 27959): The dns module no longer needs dlopen. Support for disabling dlopen altogher remains to be added. This commit introduces module_load_builtin into nss/nss_module.c, which handles the common parts of loading the built-in nss_files and nss_dns modules. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@@ -34,10 +34,4 @@ __nss_files_functions (nss_module_functions_untyped pointers)
|
||||
#undef DEFINE_NSS_FUNCTION
|
||||
#define DEFINE_NSS_FUNCTION(x) *fptr++ = _nss_files_##x;
|
||||
#include "function.def"
|
||||
|
||||
#ifdef PTR_MANGLE
|
||||
void **end = fptr;
|
||||
for (fptr = pointers; fptr != end; ++fptr)
|
||||
PTR_MANGLE (*fptr);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user