linux-mips
[Top] [All Lists]

Re: problem with big endian binutils..?

To: atul srivastava <atulsrivastava9@rediffmail.com>
Subject: Re: problem with big endian binutils..?
From: Daniel Jacobowitz <dan@debian.org>
Date: Tue, 12 Nov 2002 11:23:10 -0500
Cc: linux-mips@linux-mips.org
In-reply-to: <20021112132512.31137.qmail@mailweb34.rediffmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20021112132512.31137.qmail@mailweb34.rediffmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.1i
On Tue, Nov 12, 2002 at 01:25:12PM -0000, atul srivastava wrote:
> Have anybody confirmed stability of binutils for big endian 
> mips?
> while little endian gives me no problem
> but i am simply unable to make a working big endian ramdisk.
> 
> specific problem is in identifying the e_type and e_machine fields 
> in elf header of executables.
> expected value of e_type is 0x2(ET_EXEC) amd e_machine is 
> 0x8(EM_MIPS)
> but those are read as 0x200 and 0x800 respectivly ..this is 
> obviously the endianness problem.

Binutils is just fine.  This is a problem with whatever's reading them.

> I have tried big endian ramdisk from 
> ftp://ftp.ltc.com/pub/linux/mips/ramdisk/ramdisk
> and also tried compiling one using uclibc package , both
> failed because of same reason.
> 
> when i run file command on those executables after mounting the 
> ramdisk on my host i get o/p like
> 
> ELF 32-bit LSB executable, MIPS R3000_BE - invalid byte order, 
> version 1, statically linked, stripped
> 
> though i see lot of mails regarding "invalid byteorder" but I 
> didn't find specific suggestions.

It's normal.  The 'file' output is outdated.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

<Prev in Thread] Current Thread [Next in Thread>