[PATCH] Allow __libc_dlopen from libraries __libc_dlopen'ed by statically linked executables
Ulrich Drepper
drepper@redhat.com
Wed Jun 25 08:44:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jakub Jelinek wrote:
> 2003-06-11 Jakub Jelinek <jakub@redhat.com>
>
> * elf/Versions (libc): Add _dl_open_hook@GLIBC_PRIVATE.
> * elf/dl-libc.c (struct dl_open_hook): New.
> (_dl_open_hook): New variable.
> (do_dlsym_private): New function.
> (__libc_dlopen_mode) [!SHARED]: Lookup _dl_open_hook@GLIBC_PRIVATE
> and initialize it if found.
> (__libc_dlopen_mode) [SHARED]: If _dl_open_hook is non-NULL,
> call dlopen_mode hook.
> (__libc_dlsym) [SHARED]: If _dl_open_hook is non-NULL,
> call dlsym hook.
> (__libc_dlclose) [SHARED]: If _dl_open_hook is non-NULL,
> call dlclose hook.
I've added the patch now. I would appreciate if this code can be given
some testing. If it works out I'll look at the LDAP changes. Without
this working it's not worth it.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE++V4V2ijCOnn/RHQRAoUvAKCcSRL9jlPMn884Qw5Ixe6PlsxX9wCgswSV
KthTFdneJYdb283TCVYQuRA=
=A/O9
-----END PGP SIGNATURE-----
More information about the Libc-hacker
mailing list