From 99bf23c9e73c7492ee9d5c1f208bceedf3ff7cb5 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 22 Feb 2024 15:07:53 +0100 Subject: lib: Explicitly declare heap as NOLOAD The GNU BFD linker makes a good guess that this section should not be loaded, however other linkers like LLVM LD need this to be made explicit in order for the section to have the NOBITS, rather than PROGBITS attribute set. Change-Id: I3ca7221d10f144f608823e0b9624533780fbf335 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/80735 Reviewed-by: Maximilian Brune Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/lib/program.ld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/program.ld b/src/lib/program.ld index 21f4be8d32..6d72d9ef0e 100644 --- a/src/lib/program.ld +++ b/src/lib/program.ld @@ -131,7 +131,7 @@ #endif #if ENV_HAS_HEAP_SECTION -.heap . : { +.heap . (NOLOAD) : { . = ALIGN(ARCH_POINTER_ALIGN_SIZE); _heap = .; . += CONFIG_HEAP_SIZE; -- cgit v1.2.3