Binary compatibility loss regarding errno

H. J. Lu hjl@lucon.org
Mon Dec 30 13:53:00 GMT 2002


On Mon, Dec 30, 2002 at 01:39:30PM -0800, Roland McGrath wrote:
> 
> > Please try
> > 
> > extern int x;
> > int _x __attribute__((section (".bss")));
> > asm(".symver _x,x@VERS_1");
> > int foo() { return x; }
> 
> That produces an undefined reference to unversioned `x'.
> 

If _x is undefined, as will generate a versioned reference to x.


H.J.



More information about the Libc-alpha mailing list