linux-mips
[Top] [All Lists]

Re: machine types for MIPS in ELF file

To: Jun Sun <jsun@mvista.com>
Subject: Re: machine types for MIPS in ELF file
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 8 May 2001 21:34:22 +0200 (MET DST)
Cc: linux-mips@oss.sgi.com
In-reply-to: <3AF843F7.72BC47F0@mvista.com>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Tue, 8 May 2001, Jun Sun wrote:

> The e_machine field in ELF file standard defines two values for MIPS:
> 
> 8     - MIPS RS3000 BE
> 10    - MIPS RS4000 BE
> 
> Naturally the question is: what about LE binaries?  And what about other
> CPUs?  Is there any effort to clean up this thing?

 The latter has been changed to "MIPS RS3000 LE" in the latest ELF spec,
AFAIK.  The ISA level is further specified in the e_flags field.  No idea
why they want to keep redundant endianness information in e_machine --
there is an endianness specification at e_ident[5]. 

 Also no idea why they named the CPU RS3000 and not R3000. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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