This is the mail archive of the
mailing list for the binutils project.
Re: Linking to older symbol version
- From: Fredrik Tolf <fredrik at dolda2000 dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 15 Jul 2004 17:53:50 +0200
- Subject: Re: Linking to older symbol version
- References: <email@example.com> <40F698CF.firstname.lastname@example.org>
On Thu, 2004-07-15 at 16:46, Nick Clifton wrote:
> 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.
Unfortunately, I don't have the old library, so that won't be possible,
if I understand you correctly.
> 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");
I didn't know of that - but now that I do, I'll search for more info on
it. Thank you very much!