From bf4e28484a5c8d1da2f90fba983a5e763946bcb0 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 23 Aug 2024 01:32:47 +0200 Subject: [PATCH] arch/x86/car.ld: Fix overlapping regions The fspm_rc_heap is already accounted for inside .car.data. Some linkers like LLD do not like overlapping regions so remove this. Change-Id: I058bd6790afc313e06f1888e5b783d97b7e93b1e Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/84048 Reviewed-by: Shuo Liu Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/arch/x86/car.ld | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld index f99304f396..9d54037b7a 100644 --- a/src/arch/x86/car.ld +++ b/src/arch/x86/car.ld @@ -113,11 +113,6 @@ _car_unallocated_start = .; _car_region_end = . + CONFIG_DCACHE_RAM_SIZE - (. - _car_region_start) - CONFIG_FSP_T_RESERVED_SIZE; -. = _car_region_start; -.car.fspm_rc_heap . (NOLOAD) : { - . += CONFIG_FSP_M_RC_HEAP_SIZE; -} - . = _car_region_end; .car.mrc_var . (NOLOAD) : { . += CONFIG_DCACHE_RAM_MRC_VAR_SIZE;