Bug 442 - objdump -d -mi386:intel outputs 64-bit register names for 32 bit object
Summary: objdump -d -mi386:intel outputs 64-bit register names for 32 bit object
Status: RESOLVED DUPLICATE of bug 325
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.15
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
: 443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-12 07:45 UTC by Danny Smith
Modified: 2004-10-12 07:59 UTC (History)
1 user (show)

See Also:
Host: i386-pc-mingw32
Target: i386-pc-mingw32
Build: i386-pc-mingw32
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Smith 2004-10-12 07:45:18 UTC
With objdump (2.15.93 20041010) built for i386-pc-mingw32
disassembly to intel syntax outputs 64-bit register names
mxed in with the expected 32-bit names.

For example

/* foo.c */
void foo() {}

gcc -c foo.c
objdump -d -mi386:intel foo.o

gives:

foo.o:     file format pe-i386

Disassembly of section .text:

00000000 <_foo>:
   0:	55                   	push   rbp <<<<<
   1:	89 e5                	mov    ebp,esp
   3:	5d                   	pop    rbp <<<<<
   4:	c3                   	ret    
   5:	90                   	nop
....

objdump to default AT&T syntax works fine.
Comment 1 Danny Smith 2004-10-12 07:57:36 UTC
*** Bug 443 has been marked as a duplicate of this bug. ***
Comment 2 Alan Modra 2004-10-12 07:59:52 UTC
Fixing..

*** This bug has been marked as a duplicate of 325 ***