Bug 4429

Summary: Disassembler doesn't support PC relative in Intel mode
Product: binutils Reporter: H.J. Lu <hjl.tools>
Component: binutilsAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.18   
Target Milestone: ---   
Host: Target: x86_64-unknown-linux-gnu
Build: Last reconfirmed:

Description H.J. Lu 2007-04-26 03:56:09 UTC
[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]$
Comment 1 H.J. Lu 2007-04-26 19:17:52 UTC
Fixed by

http://sourceware.org/ml/binutils/2007-04/msg00353.html