mirror of https://github.com/crash-utility/crash
xendump: fix failure to match arm/aarch64 elf format of xendump file
Resolves: https://github.com/crash-utility/crash/pull/61 Signed-off-by: Goodbach <goodbach@gmail.com>
This commit is contained in:
parent
17e6a44b40
commit
4d2e607af5
10
xendump.c
10
xendump.c
|
@ -2055,6 +2055,16 @@ xc_core_elf_verify(char *file, char *buf)
|
|||
goto bailout;
|
||||
break;
|
||||
|
||||
case EM_ARM:
|
||||
if (machine_type_mismatch(file, "ARM", NULL, 0))
|
||||
goto bailout;
|
||||
break;
|
||||
|
||||
case EM_AARCH64:
|
||||
if (machine_type_mismatch(file, "ARM64", NULL, 0))
|
||||
goto bailout;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (machine_type_mismatch(file, "(unknown)", NULL, 0))
|
||||
goto bailout;
|
||||
|
|
Loading…
Reference in New Issue