This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: Linking to older symbol version


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


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