From 890d4fbea6490d44dd99a2cd3954d2a6c7d761e1 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 28 May 2021 13:20:15 +0200 Subject: [PATCH] arch/x86/bootblock.ld: Align the bottom of the bootblock to 64 bytes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Align the bootblock size to 64 bytes because: - cachelines are often 64 bytes large - Bootguard/CBnT requires a 64 byte alignment Change-Id: I69cdacdd15bfca1b91b6f271f2ff76889969fd91 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/55046 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/arch/x86/bootblock.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/bootblock.ld b/src/arch/x86/bootblock.ld index 3cd09003c9..4ab2275998 100644 --- a/src/arch/x86/bootblock.ld +++ b/src/arch/x86/bootblock.ld @@ -17,7 +17,7 @@ SECTIONS { . = _ebootblock - CONFIG_C_ENV_BOOTBLOCK_SIZE; #else . = BOOTBLOCK_TOP - PROGRAM_SZ; - . = ALIGN(16); + . = ALIGN(64); #endif _bootblock = .;