This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
objdump always displays LSbytes first irrespective of endianess oftarget
- From: Shekhar Divekar <shekhar at cradle dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 14 Jan 2004 15:57:43 +0530
- Subject: objdump always displays LSbytes first irrespective of endianess oftarget
I am working on a port of binutils with LITTLE ENDIAN target.
In the dump I would like to see MSByte first as it is natural for
little endian m/c. But objdump always displays LSbytes first
irrespective of endianess of target. On further investigation I found
out that this is because in objdump.c:disassemble_bytes 'bpc' is always
initialized to 1, which results in check for 'display_endian' while
producing the dump, useless.
We need to move the check for endianess outside the for loop.
Can anyone explain the expected behavior of objdump? or else I could log
a bug.
Thanks
Shekhar