This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: "Endian and objdump"
- To: xinant at cognigine dot com (Xinan Tang)
- Subject: Re: "Endian and objdump"
- From: "Harshad R Joglekar" <harshad dot joglekar at wipro dot com>
- Date: Fri, 15 Jun 2001 12:49:47 +0530
- Cc: binutils at sources dot redhat dot com
- Organization: Wipro
- References: <3B2933EA.1070408@cognigine.com>
On Friday 15 June 2001 03:30, you scribbled:
> I have a question about the endianess.
>
> If an assembler is configured as the little endian mode
> for both the host (Linux) and the target, and the binary
> code expected should looks like
>
> 0x01020304
IMO, this looks like a number (not a memory dump), and should appear the same
regardless of endianness, ie. MSB is at the left.
But a memory dump would look like
0: 0102 0304
4:
In this case, the "first" octet would be the first listed. i.e. address 0
would contain byte 01. (again regardless of endianness)