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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user