[hjl@gnu-2 tmp]$ cat x.s .intel_syntax noprefix mov eax, [rip] + 2 [hjl@gnu-2 tmp]$ gcc -c x.s [hjl@gnu-2 tmp]$ objdump -d x.o x.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <.text>: 0: 8b 05 02 00 00 00 mov 2(%rip),%eax # 0x8 [hjl@gnu-2 tmp]$ objdump -d -Mintel x.o x.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <.text>: 0: 8b 05 02 00 00 00 mov eax,DWORD PTR ds:0x2 [hjl@gnu-2 tmp]$
Fixed by http://sourceware.org/ml/binutils/2007-04/msg00353.html