> this is getting me confused, do you mean to say you are getting libc
> linked statically to startwith ( so that you can call dlopen) and then use
> dlopen to link with libc dynamically, again at runtime to use some other
> function ?

        Sorry for confusing you but this is the first time I am playing
with it. Its like this:
        I write a small function which has the same name as some library
function. Now in that function I do some operations and then I call the
original library function. I compile this file as a shared library and do
a LD_PRELOAD for it.
        Now for calling the original library function, I can't use the
same name in the function, but a pointer to the original library function
which I get using dlsym(). Now on linux RTLD_NEXT takes care of all this,
but on *BSD, RTLD_NEXT does not exist. Nor does defining it as in glibc
works. So the only option left is to load the symboltable from libc using
dlopen and then retrieve the pointer for that function.
        Hope I make it clear.
        Now anyone with solution to this?

-- 

#!!!    If anything can go wrong, _FIX_ it. (To hell with MURPHY)
        
                                                Ajay kumar Dwivedi
                                                 [EMAIL PROTECTED]


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to