This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Different exported symbols in libc.a and libc.so
- To: Constantin dot Loizides at isg dot de
- Subject: Re: Different exported symbols in libc.a and libc.so
- From: Paul Eggert <eggert at twinsun dot com>
- Date: Sun, 14 Oct 2001 21:14:53 -0700 (PDT)
- CC: libc-alpha at sources dot redhat dot com, Bug-glibc at gnu dot org
- References: <3BC2C6EE.DE495333@isg.de>
> 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.