This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking with a multi-version GLIBC
- From: Yael Feldman <yaelf at cyber-ark dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 05 Dec 2002 11:02:16 +0200
- Subject: Linking with a multi-version GLIBC
Hi,
I am using gcc version 3.02 on red-hat 7.2.
I am linking a shared object that uses the libc function shmctl.
I want to use the new version of shmctl (GLIBC 2.2(, but in runtime I get
the old version (GLIBC 2.0).
I am using the following link options:
-static-libgcc -static -Xlinker -Bstatic --warn-comon -Xlinker -Map -Xlinker
$@.map
-shared -Xlinker -fini -Xlinker unload_lib
And this is the output of "nm xxx.so |grep shmctl"
001945c8 T __new_shmctl
001945c8 W shmctl
How can I make sure that my shared object links statically with the correct
version of shmctl??
(without adding "#define shmctl __new_shmctl" to my source files)
Appreciate your help,
Yael.