This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]