This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]