Different exported symbols in libc.a and libc.so
Paul Eggert
eggert@twinsun.com
Sun Oct 14 21:14:00 GMT 2001
> 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.
More information about the Libc-alpha
mailing list