From 9efb0c082512240f58001698b22d3c8472669156 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 30 Nov 2020 14:03:51 +0100 Subject: arch/x86: Only use .bss from car.ld when running XIP Some platform run early stages like romstage and verstage from CAR instead of XIP. This allows to link them like other arch inside the _program region. This make in place LZ4 decompression possible as it needs a bit of extra place to extract the code which is now provided by the .bss. Tested on up/squared (Intel APL). Change-Id: I6cf51f943dde5f642d75ba4c5d3be520dc56370a Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/48156 Tested-by: build bot (Jenkins) Reviewed-by: Sean Rhodes Reviewed-by: Nico Huber --- src/lib/program.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/program.ld b/src/lib/program.ld index 8db7ddcb2353..67f685fa089e 100644 --- a/src/lib/program.ld +++ b/src/lib/program.ld @@ -116,7 +116,7 @@ } #endif -#if !ENV_CACHE_AS_RAM +#if !ENV_SEPARATE_BSS .bss . : { . = ALIGN(ARCH_POINTER_ALIGN_SIZE); _bss = .; -- cgit v1.2.3