This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]