bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul Eggert
Subject: Re: Different exported symbols in libc.a and libc.so
Date: Sun, 14 Oct 2001 21:14:53 -0700 (PDT)

> Date: Tue, 09 Oct 2001 11:44:14 +0200
> From: Constantin Loizides <address@hidden>
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]