From ce88ae517666e6a6b3391b661b7c16cbf48de9cf Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sat, 23 Mar 2024 18:18:05 +0100 Subject: arch/x86/bootblock.ld: Account for the .data section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit b7832de026 (x86: Add .data section support for pre-memory stages) added a data section to the bootblock. This needs to be accounted for in the linker script. Change-Id: I39abe499e5e9edbdacb1697c0a0fc347af3ef9c4 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/81434 Reviewed-by: Jérémy Compostella Tested-by: build bot (Jenkins) --- 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 65479851ce..73a3d18360 100644 --- a/src/arch/x86/bootblock.ld +++ b/src/arch/x86/bootblock.ld @@ -26,7 +26,7 @@ SECTIONS { INCLUDE "bootblock/lib/program.ld" - PROGRAM_SZ = SIZEOF(.text); + PROGRAM_SZ = SIZEOF(.text) + SIZEOF(.data); . = MIN(_ECFW_PTR, MIN(_ID_SECTION, _FIT_POINTER)) - EARLYASM_SZ; . = CONFIG(SIPI_VECTOR_IN_ROM) ? ALIGN(4096) : ALIGN(16); -- cgit v1.2.3