Add appropriate checks for the MIPS architecture to allow extension

modules to be loaded with the "extend" command.
(rabin@rab.in)
This commit is contained in:
Dave Anderson 2015-02-05 09:33:02 -05:00
parent c3840016bf
commit 75014edcbd

View File

@ -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;