This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, mips, elf.h] Fix elf.h values for MIPS archs.


On Thu, 2013-01-10 at 19:15 -0800, Roland McGrath wrote:
> It is probably just fine to remove the old aliases but that is an unrelated
> issue and does not belong in the same change.

OK, here is a patch to just fix the incorrect EF_* values and add the
two new ones.

Steve Ellcey
sellcey@mips.com



2013-01-11  Steve Ellcey  <sellcey@mips.com>

	* elf/elf.h (EF_MIPS_ARCH_32): Fix value.
	(EF_MIPS_ARCH_64): Fix value.
	(EF_MIPS_ARCH_32R2): New.
	(EF_MIPS_ARCH_64R2): New.


diff --git a/elf/elf.h b/elf/elf.h
index 0731348..9a31373 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1388,8 +1388,10 @@ typedef struct
 #define EF_MIPS_ARCH_3		0x20000000 /* -mips3 code.  */
 #define EF_MIPS_ARCH_4		0x30000000 /* -mips4 code.  */
 #define EF_MIPS_ARCH_5		0x40000000 /* -mips5 code.  */
-#define EF_MIPS_ARCH_32		0x60000000 /* MIPS32 code.  */
-#define EF_MIPS_ARCH_64		0x70000000 /* MIPS64 code.  */
+#define EF_MIPS_ARCH_32		0x50000000 /* MIPS32 code.  */
+#define EF_MIPS_ARCH_64		0x60000000 /* MIPS64 code.  */
+#define EF_MIPS_ARCH_32R2	0x70000000 /* MIPS32r2 code.  */
+#define EF_MIPS_ARCH_64R2	0x80000000 /* MIPS64r2 code.  */
 
 /* The following are unofficial names and should not be used.  */
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]