This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Binary compatibility loss regarding errno
- From: Roland McGrath <roland at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: Daniel Jacobowitz <drow at mvista dot com>,libc-alpha at sources dot redhat dot com
- Date: Fri, 27 Dec 2002 13:47:45 -0800
- Subject: Re: Binary compatibility loss regarding errno
> On Fri, Dec 27, 2002 at 01:09:48PM -0800, Roland McGrath wrote:
> > I consider this an ld bug. It's invalid to produce other than an
> > R_386_GLOB_DAT reloc for a data object that is exported at runtime.
>
> If you have a small testcase, I will take a look.
$ gcc -shared -o loser.so loser.c -Wl,--version-script=loser.v
$ readelf -r loser.so
Note no reloc using the symbol `x'.
int x;
asm(".symver x,x@VERS_1");
int foo() { return x; }
VERS_1 {
x; foo;
};