RFC: Formalization of the Intel assembly syntax (PR53929)
Jan Beulich
jbeulich@suse.com
Fri Jan 19 07:41:03 GMT 2024
On 19.01.2024 02:42, LIU Hao wrote:
> In addition, `as -msyntax=intel -mnaked-reg` doesn't seem to be equivalent to `.intel_syntax noprefix`:
>
> $ as -msyntax=intel -mnaked-reg <<< 'mov eax, DWORD PTR gs:0x48' -o a.o
> {standard input}: Assembler messages:
> {standard input}:1: Error: invalid use of register
>
> $ as <<< '.intel_syntax noprefix; mov eax, DWORD PTR gs:0x48' -o a.o && objdump -Mintel -d a.o
> ...
> 0000000000000000 <.text>:
> 0: 65 8b 04 25 48 00 00 mov eax,DWORD PTR gs:0x48
This (the error above) looks like a bug to me; I'll look into where this
odd difference in behavior is coming from.
Jan
More information about the Binutils
mailing list