Message ID | 20200308080859.21568-18-ardb@kernel.org |
---|---|
State | New |
Headers | show |
Series | [01/28] efi/x86: Add TPM related EFI tables to unencrypted mapping checks | expand |
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index 4ee25e28996f..736b3a0c9454 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S @@ -138,10 +138,12 @@ optional_header: #endif extra_header_fields: + # PE specification requires ImageBase to be 64k-aligned + .set image_base, (LOAD_PHYSICAL_ADDR + 0xffff) & ~0xffff #ifdef CONFIG_X86_32 - .long 0 # ImageBase + .long image_base # ImageBase #else - .quad 0 # ImageBase + .quad image_base # ImageBase #endif .long 0x20 # SectionAlignment .long 0x20 # FileAlignment