This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: linking against special version
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Yaroslav Popovitch <yp at sot dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Mon, 14 Apr 2003 12:21:10 -0700
- Subject: Re: linking against special version
- References: <Pine.LNX.4.44.0304142102190.26942-100000@ares.sot.com>
On Mon, Apr 14, 2003 at 09:10:04PM +0300, Yaroslav Popovitch wrote:
>
> Hi!
> As I know glibc provides ABI with symbol versioning (for compatibility
> reasons). I want to compile program which would be linked against
> ABI/API with custom set version. How can I do it?
>
> For example:
>
> glibc provides both interfaces for localeconv: GLIBC_2.2 and GLIBC_2.0.
> By default program is linked against the latest version, isn't it?
> But I need to link it against glibc_2.0 version of ABI.
Try
---
asm (".symver foo,foo at GLIBC_2 dot 0");
bar ()
{
foo ();
}
---
You may need binutils 2.13.90.0.20 for it.
H.J.