PATCH: PR gas/10637: x86 assembler failed to handle [addr] in Intel mode

Jan Beulich JBeulich@novell.com
Tue Sep 15 14:09:00 GMT 2009


>>> "H.J. Lu" <hjl.tools@gmail.com> 15.09.09 15:46 >>>
>I will take a look.
>
>Please tell me which version masm you used. Mine doesn't
>take [] as immediate.

I used 8.00.50727.42, 7.10.3077, and 7.00.9466 - which all give the
same result.

>Binutils 2.15 doesn't give any warning. And the warning says

Sure - as I said, I had added this earlier due to the ambiguity (many
people, including me, assuming that [] would mean a memory
reference unconditionally, when it really doesn't in some cases,
namely when used with plain numbers).

>y.s:3: Warning: Treating `[0xEE000F0]' as memory reference
>
>What does it mean?

??? It means what is says - that the operand is being treated as a memory
reference (rather than an immediate, as which it would be taken by masm).

Jan



More information about the Binutils mailing list