[PATCH] MIPS: Reorder EF_MIPS_32BITMODE definition
Maciej W. Rozycki
macro@codesourcery.com
Wed Nov 7 17:31:00 GMT 2012
Hi,
I have noticed one the MIPS ELF file flags is defined seemingly out of
place, not where one would expect it following the order of bits
allocated. Here's a change to correct it, adjusting formatting at the
same time.
OK to apply?
2012-11-07 Maciej W. Rozycki <macro@codesourcery.com>
include/elf/
* mips.h (EF_MIPS_32BITMODE): Move next to lower-order bits.
Maciej
binutils-mips-elf-32bitmode-order.diff
Index: binutils-fsf-trunk-quilt/include/elf/mips.h
===================================================================
--- binutils-fsf-trunk-quilt.orig/include/elf/mips.h 2012-11-07 13:35:30.000000000 +0000
+++ binutils-fsf-trunk-quilt/include/elf/mips.h 2012-11-07 17:28:21.391764095 +0000
@@ -187,6 +187,10 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
/* Process the .MIPS.options section first by ld */
#define EF_MIPS_OPTIONS_FIRST 0x00000080
+/* Indicates code compiled for a 64-bit machine in 32-bit mode
+ (regs are 32-bits wide). */
+#define EF_MIPS_32BITMODE 0x00000100
+
/* Architectural Extensions used by this file */
#define EF_MIPS_ARCH_ASE 0x0f000000
@@ -199,10 +203,6 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
/* Use MICROMIPS ISA extensions. */
#define EF_MIPS_ARCH_ASE_MICROMIPS 0x02000000
-/* Indicates code compiled for a 64-bit machine in 32-bit mode.
- (regs are 32-bits wide.) */
-#define EF_MIPS_32BITMODE 0x00000100
-
/* Four bit MIPS architecture field. */
#define EF_MIPS_ARCH 0xf0000000
More information about the Binutils
mailing list