Linking to older symbol version

Nick Clifton nickc@redhat.com
Thu Jul 15 14:37:00 GMT 2004


Hi Fredrik,

> So, my basic question is, can I somehow instruct GNU ld to link against
> GLIBC_2.0 version of regexec, in order to avoid this problem?

The simplest method would be to make sure that the new glibc is not 
present in the library search path(s) passed to GNU ld via its command 
line switches.

Another solution might be to include an explicit reference to the 
particular version of the regexp symbol that you require in your 
sources.  eg:

   __asm__ (".symver regexec,regexec@GLIBC_2.0");

Cheers
   Nick



More information about the Binutils mailing list