[PATCH 30/30] nss: Directly load nss_dns, without going through dlsym/dlopen
Florian Weimer
fweimer@redhat.com
Thu Jul 15 07:09:19 GMT 2021
* Carlos O'Donell:
>> diff --git a/nss/nss_files_functions.c b/nss/nss_files_functions.c
>> index 85720b4311..46040fff70 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
>
> OK. No more PTR_MANGLE handling required because we are not loaded.
Acutually the PTR_MANGLE is moved into the caller because it is common
between nss_dns and nss_files.
Thanks,
Florian
More information about the Libc-alpha
mailing list