[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disassemble output bug in binutils 2.14 i386 GNU-Linux with disassem
From: |
Nick Clifton |
Subject: |
Re: disassemble output bug in binutils 2.14 i386 GNU-Linux with disassembly-flavor intel |
Date: |
Mon, 26 Jan 2004 17:57:39 +0000 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) |
Hi Claudio,
> 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]
The good news is that this bug is fixed in the current binutils
sources held in the CVS repository, and so will be in the next
release.
Cheers
Nick