Linking with a multi-version GLIBC
Yael Feldman
yaelf@cyber-ark.com
Thu Dec 5 00:59:00 GMT 2002
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.
More information about the Gcc-help
mailing list