summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2024-04-05 09:00:06 +0200
committerArthur Heymans <arthur@aheymans.xyz>2024-04-08 00:02:18 +0000
commit8406fb4e271d2f47a3a73f24500912aec2896806 (patch)
treef848449d18973678dee7bfe4bd2d280f6d801f1f /src/arch/x86
parente27a26bdefdee6fda89dbd8228cc123dfd95859e (diff)
lib/program.ld: Account for large code model sections
Starting with version 18 LLVM puts code and data generated with -ffunction-section -mcmodel=large inside sections with an 'l' prefix. Change-Id: Ib755673dfa9e71172bbef0a5aec075154c89a97b Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81675 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/car.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/car.ld b/src/arch/x86/car.ld
index 8e1af15df3..f99304f396 100644
--- a/src/arch/x86/car.ld
+++ b/src/arch/x86/car.ld
@@ -72,6 +72,8 @@
/* Allow global uninitialized variables for stages without CAR teardown. */
*(.bss)
*(.bss.*)
+ *(.lbss)
+ *(.lbss.*)
*(.sbss)
*(.sbss.*)
. = ALIGN(ARCH_POINTER_ALIGN_SIZE);
@@ -97,6 +99,8 @@ _bogus = ASSERT(_etext == ALIGN(_etext, ARCH_POINTER_ALIGN_SIZE), "Cache-As-RAM
_data = .;
*(.data);
*(.data.*);
+ *(.ldata);
+ *(.ldata.*);
*(.sdata);
*(.sdata.*);
. = ALIGN(ARCH_POINTER_ALIGN_SIZE);