summaryrefslogtreecommitdiffstats
path: root/patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2019-03-04 09:02:59 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-03-04 12:47:02 +0100
commitac816084d9dca9f6af991570666e29739a60a132 (patch)
tree52e852238711b3b414ea0ebce974b0622cd3d05b /patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch
parent13c7afeb48806b5d3f22ce43b3559cbbfa052a37 (diff)
downloadptxdist-ac816084d9dca9f6af991570666e29739a60a132.tar.gz
ptxdist-ac816084d9dca9f6af991570666e29739a60a132.tar.xz
version bump elfutils 174 -> 176
and take over patches from debian. It is needed to make MIPS work. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch')
-rw-r--r--patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch b/patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch
new file mode 100644
index 000000000..a9a721003
--- /dev/null
+++ b/patches/elfutils-0.176/0001-Ignore-differences-between-mips-machine-identifiers.patch
@@ -0,0 +1,31 @@
+From 77cb4a53c270d5854d3af24f19547bc3de825233 Mon Sep 17 00:00:00 2001
+From: James Cowgill <james410@cowgill.org.uk>
+Date: Mon, 5 Jan 2015 15:16:58 +0000
+Subject: [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 <james410@cowgill.org.uk>
+---
+ backends/mips_init.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+Index: b/backends/mips_init.c
+===================================================================
+--- a/backends/mips_init.c
++++ b/backends/mips_init.c
+@@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unus
+ 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);