This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: yet another possible gas bug


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


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