Commit f328ba47 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Catalin Marinas

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: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 99922257
...@@ -15,7 +15,7 @@ coff_header: ...@@ -15,7 +15,7 @@ coff_header:
.short 2 // nr_sections .short 2 // nr_sections
.long 0 // TimeDateStamp .long 0 // TimeDateStamp
.long 0 // PointerToSymbolTable .long 0 // PointerToSymbolTable
.long 1 // NumberOfSymbols .long 0 // NumberOfSymbols
.short section_table - optional_header // SizeOfOptionalHeader .short section_table - optional_header // SizeOfOptionalHeader
.short 0x206 // Characteristics. .short 0x206 // Characteristics.
// IMAGE_FILE_DEBUG_STRIPPED | // IMAGE_FILE_DEBUG_STRIPPED |
...@@ -88,7 +88,7 @@ section_table: ...@@ -88,7 +88,7 @@ section_table:
.long 0 // PointerToLineNumbers .long 0 // PointerToLineNumbers
.short 0 // NumberOfRelocations .short 0 // NumberOfRelocations
.short 0 // NumberOfLineNumbers .short 0 // NumberOfLineNumbers
.long 0x42100040 // Characteristics (section flags) .long 0x42000040 // Characteristics (section flags)
.ascii ".text" .ascii ".text"
...@@ -104,7 +104,7 @@ section_table: ...@@ -104,7 +104,7 @@ section_table:
.long 0 // PointerToLineNumbers .long 0 // PointerToLineNumbers
.short 0 // NumberOfRelocations .short 0 // NumberOfRelocations
.short 0 // NumberOfLineNumbers .short 0 // NumberOfLineNumbers
.long 0xe0500020 // Characteristics .long 0xe0000020 // Characteristics
#ifdef CONFIG_DEBUG_EFI #ifdef CONFIG_DEBUG_EFI
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment