Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 46d2c2f8fecad85baeed9fe211f5285820220442 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: James Cowgill <james410@cowgill.org.uk> |
| 3 | Date: Mon, 5 Jan 2015 15:16:58 +0000 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 4 | Subject: [PATCH] Ignore differences between mips machine identifiers |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 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> |
Brad Bishop | a5c52ff | 2018-11-23 10:55:50 +1300 | [diff] [blame] | 11 | Upstream-Status: Pending [from debian] |
| 12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 13 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | --- |
| 15 | backends/mips_init.c | 6 +----- |
| 16 | 1 file changed, 1 insertion(+), 5 deletions(-) |
| 17 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 18 | diff --git a/backends/mips_init.c b/backends/mips_init.c |
| 19 | index 975c04e..8482e7f 100644 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 20 | --- a/backends/mips_init.c |
| 21 | +++ b/backends/mips_init.c |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 22 | @@ -45,11 +45,7 @@ mips_init (Elf *elf __attribute__ ((unused)), |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | return NULL; |
| 24 | |
| 25 | /* We handle it. */ |
| 26 | - if (machine == EM_MIPS) |
| 27 | - eh->name = "MIPS R3000 big-endian"; |
| 28 | - else if (machine == EM_MIPS_RS3_LE) |
| 29 | - eh->name = "MIPS R3000 little-endian"; |
| 30 | - |
| 31 | + eh->name = "MIPS"; |
| 32 | mips_init_reloc (eh); |
| 33 | HOOK (eh, reloc_simple_type); |
| 34 | HOOK (eh, return_value_location); |