summaryrefslogtreecommitdiffstats
path: root/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/x86_64/kexec-elf-rel-x86_64.c')
-rw-r--r--kexec/arch/x86_64/kexec-elf-rel-x86_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
index db85b443..0d22f3b1 100644
--- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
@@ -8,7 +8,8 @@ int machine_verify_elf_rel(struct mem_ehdr *ehdr)
if (ehdr->ei_data != ELFDATA2LSB) {
return 0;
}
- if (ehdr->ei_class != ELFCLASS64) {
+ if (ehdr->ei_class != ELFCLASS64 &&
+ ehdr->ei_class != ELFCLASS32) { /* x32 */
return 0;
}
if (ehdr->e_machine != EM_X86_64) {