Negative bignum expressions

Alan Modra amodra@bigpond.net.au
Thu Sep 20 17:10:00 GMT 2001


On Thu, Sep 20, 2001 at 07:25:58PM -0400, Geoff Berry wrote:
> I'm seeing some inconsistent behavior in the way gas handles bignums.
> 
> On x86, the following code is accepted:
>  .quad 9187201950435737472
> while the following is rejected (Error: bignum invalid; zero assumed)
>  .quad -9187201950435737472

You can't use any arithmetic operator on bignums, including unary "-".
A workaround for this particular case is to configure gas with
--enable-64-bit-bfd.

Alan Modra



More information about the Binutils mailing list