From: James Cowgill Date: Mon, 5 Jan 2015 15:16:58 +0000 (+0000) Subject: [PATCH 1/3] Ignore differences between mips machine identifiers X-Git-Tag: archive/raspbian/0.188-2.1+rpi1^2^2^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=23b46a9b59de1ca9de953d1544a5f13cd14ff755;p=elfutils.git [PATCH 1/3] Ignore differences between mips machine identifiers 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 Gbp-Pq: Name 0001-Ignore-differences-between-mips-machine-identifiers.patch --- diff --git a/backends/mips_init.c b/backends/mips_init.c index 975c04e..8482e7f 100644 --- a/backends/mips_init.c +++ b/backends/mips_init.c @@ -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);