bug-glibc
[Top][All Lists]
Advanced

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

Different exported symbols in libc.a and libc.so


From: Constantin Loizides
Subject: Different exported symbols in libc.a and libc.so
Date: Tue, 09 Oct 2001 11:44:14 +0200

Hello!

I am in the progress of writing an additional set of lib functions 
that override some of the exportet weak symbols of the
glibc. The idea is using the preload capabilities of ld
to first dynamically load my lib extension prior to the
libc.so, so that the application under question uses 
the overwritten functions of my lib extension.

So far so good, my lib extension crew in the last days until
I encountered the following problem:

It seems that for some reason (security?) some symbols are only
exported in the static version of the glibc.
Eg. chdir is the weak verson of __chdir, so I can define
my version of it, but __chdir is only exported in libc.a 
and not exported in the libc.so 

When looking in the compiler and linker scripts I could not
solve the problem to compile and link a shared version of
the glibs, which exports the (missing?) symbols.

Anyone any idea? Did I miss a fundamental
concept? Any hints and comments are highly welcome!

Cheers
Constantin

PS: Please cc me, as I am not subscribed on the list
(and sorry for the cross post, but I was unsure about
which list to use.)


-- 
Constantin Loizides                     Phone:  +49 69 505030-212
Innovative Software AG                  Fax:    +49 69 505030-505
Feuerbachstraße 26-32
60325 Frankfurt / Germany               WWW:    http://www.isg.de



reply via email to

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