diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:55:27 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:56:57 +0200 |
commit | ee5ed99922ca90bcea4a2f9a48a0c9ae4b534ece (patch) | |
tree | fd5d30e2d8a6f676f63698560094da119108806c /nss/nss_files_functions.c | |
parent | e1fcf21474c5b522fdad4ac0191d5dcc3271dba6 (diff) | |
download | glibc-ee5ed99922ca90bcea4a2f9a48a0c9ae4b534ece.zip glibc-ee5ed99922ca90bcea4a2f9a48a0c9ae4b534ece.tar.gz glibc-ee5ed99922ca90bcea4a2f9a48a0c9ae4b534ece.tar.bz2 |
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>
Diffstat (limited to 'nss/nss_files_functions.c')
-rw-r--r-- | nss/nss_files_functions.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nss/nss_files_functions.c b/nss/nss_files_functions.c index 85720b4..46040ff 100644 --- a/nss/nss_files_functions.c +++ b/nss/nss_files_functions.c @@ -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 } |