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


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!

Fredrik Tolf



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