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.
Regards,
Kevin K.
----- Original Message -----
From: "Martin Michlmayr" <tbm@cyrius.com>
To: "Ralf Baechle" <ralf@linux-mips.org>
Cc: <linux-mips@linux-mips.org>
Sent: Friday, April 07, 2006 7:19 PM
Subject: Re: Diff between Linus' and linux-mips git: elf.h
> * Ralf Baechle <ralf@linux-mips.org> [2006-02-20 11:34]:
> > > Can we agree?
> > > -#define EM_MIPS_RS4_BE 10 /* MIPS R4000 big-endian */
> > > +#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */
> > Not really :-)
> >
> > I've dug deep into history - but it seems nobody remembers the reason for
> > this change anymore. I suspect actually both constant names might
> > historically have been in use. For the purposes of Linux it's probably
> > best to dump the whole number - it never had any relevance.
>
> Maybe you can remove it, or at least bring it in sync.
> --
> Martin Michlmayr
> http://www.cyrius.com/
>
>
|