Difference between objdump and readlelf output

Nick Clifton nickc@redhat.com
Thu Jan 4 13:39:00 GMT 2007


Hi Alan,

> readelf -x is broken for little-endian.   I don't think readelf should
> be trying to print the value of each 32-bit word.  After all, the
> section data may well not be 32-bit words, especially on 64-bit
> targets.  Instead we should just dump the bytes, with an extra space
> every 4 bytes to help in counting bytes.
> 
> Does anyone think we should be doing something different?

Makes sense to me.

Cheers
   Nick



More information about the Binutils mailing list