[Crash-utility] [PATCH] Support extensions for MIPS

Rabin Vincent rabin at rab.in
Wed Feb 4 20:10:13 UTC 2015


Add appropriate checks for MIPS to is_shared_object() so that extensions
work.
---
 symbols.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/symbols.c b/symbols.c
index 59312e6..c3883f0 100644
--- a/symbols.c
+++ b/symbols.c
@@ -3452,7 +3452,8 @@ is_shared_object(char *file)
 		switch (swap16(elf32->e_machine, swap))
 		{
 		case EM_386:
-			if (machine_type("X86") || machine_type("ARM"))
+			if (machine_type("X86") || machine_type("ARM") ||
+			    machine_type("MIPS"))
 				return TRUE;
 			break;
 
@@ -3466,6 +3467,11 @@ is_shared_object(char *file)
 				return TRUE;
 			break;
 
+		case EM_MIPS:
+			if (machine_type("MIPS"))
+				return TRUE;
+			break;
+
 		case EM_PPC:
 			if (machine_type("PPC"))
 				return TRUE;
-- 
2.1.4




More information about the Crash-utility mailing list