diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch b/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch new file mode 100644 index 0000000000..e0291b4cf3 --- /dev/null +++ b/meta/recipes-devtools/elfutils/files/debian/0001-Ignore-differences-between-mips-machine-identifiers.patch | |||
@@ -0,0 +1,35 @@ | |||
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 | Upstream-Status: Backport [from debian] | ||
13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
14 | |||
15 | --- | ||
16 | backends/mips_init.c | 6 +----- | ||
17 | 1 file changed, 1 insertion(+), 5 deletions(-) | ||
18 | |||
19 | Index: b/backends/mips_init.c | ||
20 | =================================================================== | ||
21 | --- a/backends/mips_init.c | ||
22 | +++ b/backends/mips_init.c | ||
23 | @@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unus | ||
24 | return NULL; | ||
25 | |||
26 | /* We handle it. */ | ||
27 | - if (machine == EM_MIPS) | ||
28 | - eh->name = "MIPS R3000 big-endian"; | ||
29 | - else if (machine == EM_MIPS_RS3_LE) | ||
30 | - eh->name = "MIPS R3000 little-endian"; | ||
31 | - | ||
32 | + eh->name = "MIPS"; | ||
33 | mips_init_reloc (eh); | ||
34 | HOOK (eh, reloc_simple_type); | ||
35 | HOOK (eh, return_value_location); | ||