This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
_dlfcn_hook and SHARED
- From: Mathieu Lacage <mathieu dot lacage at sophia dot inria dot fr>
- To: libc-help at sourceware dot org
- Date: Mon, 21 Jul 2008 14:58:38 -0700
- Subject: _dlfcn_hook and SHARED
hi,
while trying to go through the glibc dlfcn/elf source code, I stumbled
upon the _dlfcn_hook global variable defined in dlfcn/dlerror.c: this
pointer is initialized to zero (nocommon attribute) and is tested
extensively at the start of each of the __dlfoo functions for equality
to NULL when the macro SHARED is defined.
I have, however, been unable to find anywhere this pointer would be
reset to anything but NULL when SHARED is defined. This begs the
question: where is _dlfcn_hook ever set to anything but NULL when SHARED
is defined ?
regards,
Mathieu