disassembler bug

Shaun Jackman sjackman@home.com
Tue Apr 24 14:48:00 GMT 2001


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



More information about the Binutils mailing list