Linking to older symbol version

Fredrik Tolf fredrik@dolda2000.com
Thu Jul 15 15:53:00 GMT 2004


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




More information about the Binutils mailing list