From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1f8bc3c50415f3daf76a9e0dd764bdb5.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199709112117.XAA09729@troet.vossnet.de> Date: Thu, 11 Sep 1997 19:14:51 -0400 From: Uncle George Subject: dlsym() & multiple libs.so. how should it work 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