approved GAS/Binutils version

David O'Brien obrien@NUXI.com
Tue Mar 7 18:52:00 GMT 2000


What version of gas (Binutils) is GCC 2.95.2 written towards?
GCC 2.95.2 on FreeBSD sometimes generates @GOTOFF statements which cause
gas to output:

    {standard input}: Assembler messages:
    {standard input}:87: Warning: warning: unrecognized characters `@GOTOFF'
        in expression

as the latest released version of Binutils (2.9.1) cannot handle constants
of the form address@GOTOFF.  %ebx normally has to be added to these
constants to get an address, but gcc sometimes "optimizes"
    "leal address@GOTOFF(%ebx),%eax" to
    "movl $address@GOTOFF,%eax; addl %ebx,%eax".

-- 
-- David    (obrien@NUXI.com)


More information about the Gcc mailing list