summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-02-22 15:07:53 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-02-26 13:00:54 +0000
commit99bf23c9e73c7492ee9d5c1f208bceedf3ff7cb5 (patch)
tree58fe0aaca1ed29d0219cbfdf1a8196c6a88ea5c7 /src/lib
parenta06175523ca642985f87711fb1957e57e0025137 (diff)
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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80735 Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
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 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;