This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [PATCH] Allow __libc_dlopen from libraries __libc_dlopen'ed bystatically linked executables


-----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-----


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