Skip to content

Commit 4d2e607

Browse files
Goodbachk-hagio
authored andcommitted
xendump: fix failure to match arm/aarch64 elf format of xendump file
Resolves: #61 Signed-off-by: Goodbach <[email protected]>
1 parent 17e6a44 commit 4d2e607

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

xendump.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,16 @@ xc_core_elf_verify(char *file, char *buf)
20552055
goto bailout;
20562056
break;
20572057

2058+
case EM_ARM:
2059+
if (machine_type_mismatch(file, "ARM", NULL, 0))
2060+
goto bailout;
2061+
break;
2062+
2063+
case EM_AARCH64:
2064+
if (machine_type_mismatch(file, "ARM64", NULL, 0))
2065+
goto bailout;
2066+
break;
2067+
20582068
default:
20592069
if (machine_type_mismatch(file, "(unknown)", NULL, 0))
20602070
goto bailout;

0 commit comments

Comments
 (0)