]> code.ossystems Code Review - openembedded-core.git/blob
a9a721003174083d8bc57be850368d830c3ce544
[openembedded-core.git] /
1 From 77cb4a53c270d5854d3af24f19547bc3de825233 Mon Sep 17 00:00:00 2001
2 From: James Cowgill <james410@cowgill.org.uk>
3 Date: Mon, 5 Jan 2015 15:16:58 +0000
4 Subject: [PATCH 1/3] Ignore differences between mips machine identifiers
5
6 Little endian binaries actually use EM_MIPS so you can't tell the endianness
7 from the elf machine id. Also, the EM_MIPS_RS3_LE machine is dead anyway (the
8 kernel will not load binaries containing it).
9
10 Signed-off-by: James Cowgill <james410@cowgill.org.uk>
11 ---
12  backends/mips_init.c | 6 +-----
13  1 file changed, 1 insertion(+), 5 deletions(-)
14
15 Index: b/backends/mips_init.c
16 ===================================================================
17 --- a/backends/mips_init.c
18 +++ b/backends/mips_init.c
19 @@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unus
20      return NULL;
21  
22    /* We handle it.  */
23 -  if (machine == EM_MIPS)
24 -    eh->name = "MIPS R3000 big-endian";
25 -  else if (machine == EM_MIPS_RS3_LE)
26 -    eh->name = "MIPS R3000 little-endian";
27 -
28 +  eh->name = "MIPS";
29    mips_init_reloc (eh);
30    HOOK (eh, reloc_simple_type);
31    HOOK (eh, return_value_location);