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


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

Re: Different exported symbols in libc.a and libc.so


> Date: Tue, 09 Oct 2001 11:44:14 +0200
> From: Constantin Loizides <Constantin.Loizides@isg.de>
> 
> Anyone any idea? Did I miss a fundamental concept? Any hints and
> comments are highly welcome!

You shouldn't rely on the chdir/__chdir relationship when you're
trying to write a chdir wrapper.  Instead, you should simply wrap
chdir, without worrying about __chdir.

With dynamic shared objects, you should be able to do this with dlsym
and RTLD_NEXT.

This stuff isn't in the glibc 2.2.4 documentation, so it's no wonder
you're not familiar with it.  But you have the source.


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