This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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 against special version


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.


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