How to make the objdump disassembled code work with gas?
Peng Yu
pengyu.ut@gmail.com
Wed Apr 28 02:05:58 GMT 2021
I got the following intel syntax assembly code.
$ objdump -w -d -M intel -- 1.o
...
0: 0f 1f 44 00 00 nop DWORD PTR [rax+rax*1+0x0]
When I try to use the same code with gas, it shows the following
error. How to make it work?
$ cat 2.asm
.intel_syntax
nop DWORD PTR [rax+rax*1+0x0]
$ as 2.asm
2.asm: Assembler messages:
2.asm:2: Error: invalid operands (*UND* and *ABS* sections) for `*'
--
Regards,
Peng
More information about the Binutils
mailing list