diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-23 19:00:48 +0000 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-04-04 17:50:34 +0100 |
commit | f328ba470c9ec282d7bbcc151c8dd19fff7513c3 (patch) | |
tree | 0920e307404ce9afdff369065e86929fe92806fb /arch/arm64/kernel/efi-header.S | |
parent | 99922257cf72a4e2999eebf87ee9b3868cbca61f (diff) | |
download | linux-stable-f328ba470c9ec282d7bbcc151c8dd19fff7513c3.tar.gz linux-stable-f328ba470c9ec282d7bbcc151c8dd19fff7513c3.tar.bz2 linux-stable-f328ba470c9ec282d7bbcc151c8dd19fff7513c3.zip |
arm64: efi: remove forbidden values from the PE/COFF header
Bring the PE/COFF header in line with the PE/COFF spec, by setting
NumberOfSymbols to 0, and removing the section alignment flags.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/efi-header.S')
-rw-r--r-- | arch/arm64/kernel/efi-header.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/kernel/efi-header.S b/arch/arm64/kernel/efi-header.S index 9b24ce130afb..515624bbfcd0 100644 --- a/arch/arm64/kernel/efi-header.S +++ b/arch/arm64/kernel/efi-header.S @@ -15,7 +15,7 @@ coff_header: .short 2 // nr_sections .long 0 // TimeDateStamp .long 0 // PointerToSymbolTable - .long 1 // NumberOfSymbols + .long 0 // NumberOfSymbols .short section_table - optional_header // SizeOfOptionalHeader .short 0x206 // Characteristics. // IMAGE_FILE_DEBUG_STRIPPED | @@ -88,7 +88,7 @@ section_table: .long 0 // PointerToLineNumbers .short 0 // NumberOfRelocations .short 0 // NumberOfLineNumbers - .long 0x42100040 // Characteristics (section flags) + .long 0x42000040 // Characteristics (section flags) .ascii ".text" @@ -104,7 +104,7 @@ section_table: .long 0 // PointerToLineNumbers .short 0 // NumberOfRelocations .short 0 // NumberOfLineNumbers - .long 0xe0500020 // Characteristics + .long 0xe0000020 // Characteristics #ifdef CONFIG_DEBUG_EFI /* |