summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/head.S
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-10-10 18:42:55 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2014-11-05 09:03:09 +0100
commita352ea3e197b3aa74deb51728b050cd4a0c6105a (patch)
tree6515e8871f2366e95bc76dc7cc18f6cf3d044fd1 /arch/arm64/kernel/head.S
parentea6bc80d1819f307d98c6562c8ebb2c6c1297d47 (diff)
downloadtalos-obmc-linux-a352ea3e197b3aa74deb51728b050cd4a0c6105a.tar.gz
talos-obmc-linux-a352ea3e197b3aa74deb51728b050cd4a0c6105a.zip
arm64/efi: set PE/COFF file alignment to 512 bytes
Change our PE/COFF header to use the minimum file alignment of 512 bytes (0x200), as mandated by the PE/COFF spec v8.3 Also update the linker script so that the Image file itself is also a round multiple of FileAlignment. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Roy Franz <roy.franz@linaro.org> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'arch/arm64/kernel/head.S')
-rw-r--r--arch/arm64/kernel/head.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index 8ae84d8c2a8c..5a76e3ab788c 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -162,7 +162,7 @@ optional_header:
extra_header_fields:
.quad 0 // ImageBase
.long 0x1000 // SectionAlignment
- .long 0x8 // FileAlignment
+ .long PECOFF_FILE_ALIGNMENT // FileAlignment
.short 0 // MajorOperatingSystemVersion
.short 0 // MinorOperatingSystemVersion
.short 0 // MajorImageVersion
OpenPOWER on IntegriCloud