From 75014edcbd668617a1a7fb049ffa2975cd1592b8 Mon Sep 17 00:00:00 2001 From: Dave Anderson Date: Thu, 5 Feb 2015 09:33:02 -0500 Subject: [PATCH] Add appropriate checks for the MIPS architecture to allow extension modules to be loaded with the "extend" command. (rabin@rab.in) --- 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;