summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-11-30 14:03:51 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-10-20 14:43:40 +0000
commit9efb0c082512240f58001698b22d3c8472669156 (patch)
tree36954f4dd83e75e396687d34deaa80f666931346 /src/lib
parent1915ec1fe74a0f65d0e75464e176e5692bf27190 (diff)
downloadcoreboot-9efb0c082512240f58001698b22d3c8472669156.tar.gz
coreboot-9efb0c082512240f58001698b22d3c8472669156.tar.bz2
coreboot-9efb0c082512240f58001698b22d3c8472669156.zip
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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48156 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/program.ld2
1 files changed, 1 insertions, 1 deletions
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 = .;