From: Uncle George <gatgul@voicenet.com>
Subject: dlsym() & multiple libs.so. how should it work
Date: Thu, 11 Sep 1997 19:14:51 -0400 [thread overview]
Message-ID: <1f8bc3c50415f3daf76a9e0dd764bdb5.axp-list@archive.invalid> (raw)
I seem to have this prob with dlsym(RTLD_NEXT, name ). How should it work if u have
multiple shared libraries, some having the same module/routine name!
say for instance i have a main(), and a private .so ( private because I created it for
this pgm ) . in the private .so there is a global open() routine. ALSO in the private
.so, in another routine, there is a call to dlsym(RTLD_NEXT, "OPEN"). the main()
routine also has use of libc.so which also contains an open() routine.
ergo:
private.so -> open()
libc.so.6 -> open()
What address should be returned - the open from my private .so, or the one from libc.so
?? if dlsym was called from private.so ??
DONT ANSWER SO FAST. The program I am debugging, codewise, suggests that the address
should be from libc.so. remember that the dlopen occures within the private .so.
I was debugging on the alpha/axp box - but my intel seems to have the same
unpredictable behaviour.
Any authoratative documentation on the dlsym(RTLD_NEXT feature ???????
anyway it appears that the RTLD_NEXT feature needs some more work
gat aka Uncle george
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-09-11 23:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-11 23:14 Uncle George [this message]
[not found] <34187B6A.6F7DE1E0@voicenet.com>
1997-09-12 3:20 ` dlsym() & multiple libs.so. how should it work Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-09-12 11:54 Uncle George
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox