This is the mail archive of the binutils@sourceware.org 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: PATCH: PR gas/10637: x86 assembler failed to handle [addr] in Intel mode


>>> "H.J. Lu" <hongjiu.lu@intel.com> 14.09.09 23:37 >>>
>In Intel mode, [rax + 0x100] is treated as memory while [0x100] is
>treated as immediate value.  This patch changes [0x100] to memory.
>I'd like to hear the reason why [0x100] shouldn't be treated as memory.
>If there are no objections, I will check it in tomorrow.

This is in conformance with masm. You need either an "xxx PTR" prefix
or a segment override to express that you want a memory reference.

Jan


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