linux-mips
[Top] [All Lists]

Re: Diff between Linus' and linux-mips git: elf.h

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: Diff between Linus' and linux-mips git: elf.h
From: Thiemo Seufer <ths@networkno.de>
Date: Mon, 10 Apr 2006 13:27:15 +0100
Cc: "Kevin D. Kissell" <kevink@mips.com>, Martin Michlmayr <tbm@cyrius.com>, linux-mips@linux-mips.org
In-reply-to: <20060407222142.GA26104@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060219234318.GA16311@deprecation.cyrius.com> <20060220000141.GX10266@deprecation.cyrius.com> <20060220001126.GA17967@deprecation.cyrius.com> <20060220003128.GD17967@deprecation.cyrius.com> <20060220113420.GB5594@linux-mips.org> <20060407171910.GU6869@deprecation.cyrius.com> <090d01c65a6b$623f6480$10eca8c0@grendel> <20060407222142.GA26104@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060126
Ralf Baechle wrote:
> On Fri, Apr 07, 2006 at 07:47:40PM +0200, Kevin D. Kissell wrote:
> 
> > Arguably, whatever's used by binutils should be the tie-breaker.
> > Googling around, I see that the EM_MIPS_RS3_LE value was
> > added in the October 4, 1999 draft of the ELF spec, but inexplicably
> > the alias with EM_MIPS_RS4_BE was left in place - perhaps they
> > were supposed to be disambiguated by some 32-vs-64-bit flag
> > somewhere.  A random sampling of ELF documents on the web
> > shows the vast majority calling out RS3_LE and not RS4_BE.
> 
> No way to actually resolve this one; not even binutils oldtimer
> Ian Lance Taylor can remember the reasons for the change anymore.

FWIW, the general rule is to use EM_MIPS == 8 for MIPS with both
endiannesses and ignore EM_MIPS_*. So removing the other defines
from the linux include file seems to be the sensible thing to do.
(Binutils can't do the same due to backward compatibility concerns.)


Thiemo

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