diff options
author | Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> | 2020-10-09 17:40:07 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2020-11-16 11:59:01 +0100 |
commit | 6b5667debcb8ea6d3da88692a6c51049a2c6013d (patch) | |
tree | fe7f88ed0a8f3cf8f6e4fefd077a2102ec9d6f91 | |
parent | 5c7f47ddc24b92ec2b345660b701c4bf1c0d8032 (diff) |
x86_64: allow ELFCLASS32 for x32 support
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/x86_64/kexec-elf-rel-x86_64.c | 3 |
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 db85b44..0d22f3b 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) { |