Commit 4415f9f4 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Ingo Molnar

arm/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.
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-efi@vger.kernel.org
Link: http://lkml.kernel.org/r/20170818194947.19347-9-ard.biesheuvel@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent dcf8f5ce
...@@ -44,7 +44,7 @@ coff_header: ...@@ -44,7 +44,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 .short section_table - optional_header
@ SizeOfOptionalHeader @ SizeOfOptionalHeader
.short 0x306 @ Characteristics. .short 0x306 @ Characteristics.
...@@ -110,7 +110,7 @@ section_table: ...@@ -110,7 +110,7 @@ section_table:
.long 0 @ PointerToLineNumbers .long 0 @ PointerToLineNumbers
.short 0 @ NumberOfRelocations .short 0 @ NumberOfRelocations
.short 0 @ NumberOfLineNumbers .short 0 @ NumberOfLineNumbers
.long 0x42100040 @ Characteristics .long 0x42000040 @ Characteristics
.ascii ".text\0\0\0" .ascii ".text\0\0\0"
.long _end - __efi_start @ VirtualSize .long _end - __efi_start @ VirtualSize
...@@ -121,7 +121,7 @@ section_table: ...@@ -121,7 +121,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
.align 9 .align 9
__efi_start: __efi_start:
......
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