bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

disassemble output bug in binutils 2.14 i386 GNU-Linux with disassembly-


From: Claudio Fontana
Subject: disassemble output bug in binutils 2.14 i386 GNU-Linux with disassembly-flavor intel
Date: Tue, 13 Jan 2004 21:56:26 +0100 (CET)

Hello,
 
it seems to me that disassemble of instructions in the
form

mov register, [register + register * 4]
 
are not correctly displayed with disassembly-flavor
intel in binutils 2.14 (GNU objdump 2.14 20030612,
GNU-Linux 2.4.xx, gcc 3.3.2, i686)

AT&T syntax shows ok.

Example: disassembly of opcode 8b 04 80

$ objdump -d ./a.out

./a.out:     file format elf32-i386
Disassembly of section .text:
08048080 <_start>:
 8048080: 8b 04 80    mov    (%eax,%eax,4),%eax

$ objdump -d --disassembler-options=intel a.out
 
a.out:     file format elf32-i386
Disassembly of section .text:
08048080 <_start>:
 8048080: 8b 04 80    mov    eax,DWORD PTR [eax+eax]

Correct output should be instead
mov    eax, DWORD PTR [eax + eax*4]

Claudio


______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il 
filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]