Bug 5072 - The x86 disassembler failed to dectect invalid 64bit opcode
Summary: The x86 disassembler failed to dectect invalid 64bit opcode
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: H.J. Lu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 22:35 UTC by H.J. Lu
Modified: 2007-09-29 23:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2007-09-26 22:35:00 UTC
[hjl@gnu-6 tmp]$ cat x.s
lds    (%eax),%edx
[hjl@gnu-6 tmp]$ gcc -c -m32 x.s
[hjl@gnu-6 tmp]$ objdump -d -Mx86-64 x.o

x.o:     file format elf32-i386

Disassembly of section .text:

00000000 <.text>:
   0:   c5 10                   lds    (%rax),%edx
[hjl@gnu-6 tmp]$ cat y.s
lds    (%rax),%edx
[hjl@gnu-6 tmp]$ gcc -c y.s
y.s: Assembler messages:
y.s:1: Error: `lds' is not supported in 64-bit mode
[hjl@gnu-6 tmp]$
Comment 1 H.J. Lu 2007-09-29 23:19:49 UTC
Fixed by

http://sourceware.org/ml/binutils/2007-09/msg00413.html