[PATCH 1/3] Ignore differences between mips machine identifiers
authorJames Cowgill <james410@cowgill.org.uk>
Mon, 5 Jan 2015 15:16:58 +0000 (15:16 +0000)
committerKarsten Merker <merker@debian.org>
Tue, 28 May 2019 18:53:12 +0000 (19:53 +0100)
Little endian binaries actually use EM_MIPS so you can't tell the endianness
from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the
kernel will not load binaries containing it).

Signed-off-by: James Cowgill <james410@cowgill.org.uk>
Gbp-Pq: Name 0001-Ignore-differences-between-mips-machine-identifiers.patch

backends/mips_init.c

index 975c04e1e168c599a74966d6a661f696b9a0063c..8482e7fe6e965091887e4d7ce4f288374905ecdf 100644 (file)
@@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unused)),
     return NULL;
 
   /* We handle it.  */
-  if (machine == EM_MIPS)
-    eh->name = "MIPS R3000 big-endian";
-  else if (machine == EM_MIPS_RS3_LE)
-    eh->name = "MIPS R3000 little-endian";
-
+  eh->name = "MIPS";
   mips_init_reloc (eh);
   HOOK (eh, reloc_simple_type);
   HOOK (eh, return_value_location);