mirror of
https://github.com/crash-utility/crash
synced 2025-02-08 17:36:53 +00:00
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:
parent
c3840016bf
commit
75014edcbd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user