yet another possible gas bug

Alan Modra amodra@bigpond.net.au
Tue Oct 21 02:24:00 GMT 2003


On Mon, Oct 20, 2003 at 03:43:38PM +0200, Denis J Barrow wrote:
> void test2() __attribute__ ((weak, alias ("test@@VERS_1.1")));

Yes, the assembler complains about
        .set    test2,test@@VERS_1.1

You're trying to use symbols versions in a way they weren't designed
to be used..  There is no provision within gas to refer to a versioned
symbol (ie. with @ in the name), other than via the .symver directive.
The ld info docs cover this reasonably well.  In your case, you'd need
to have the alias refer to the local symbol name, ie. test.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list