This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
disassembler bug
- To: binutils at sources dot redhat dot com
- Subject: disassembler bug
- From: Shaun Jackman <sjackman at home dot com>
- Date: Tue, 24 Apr 2001 14:58:01 -0700
try this...
#!/bin/sh
cat > foo.s << END
mov (%esp),%ebx
mov %ebx,(%esp)
END
as foo.s
objdump -D
----- Result -----
a.out: file format elf32-i386
Disassembly of section .text:
00000000 <.text>:
0: 8b 1c 24 mov (%esp,1),%ebx
3: 89 1c 24 mov %ebx,(%esp,1)
6: 89 f6 mov %esi,%esi
Disassembly of section .data:
------------------
Should those (%esp,1) be (%esp)?
----- Versions -----
GNU assembler version 2.11.90.0.5 (i386-linux) using BFD version 2.11.90.0.5
GNU objdump 2.11.90.0.5
Thanks,
Shaun