Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81675?usp=email )
Change subject: lib/program.ld: Account for .ltext section ......................................................................
lib/program.ld: Account for .ltext section
Starting with version 18 LLVM puts code generated with -ffunction-section -mcmodel=large inside .ltext rather than .text so account for that in the linker script.
Change-Id: Ib755673dfa9e71172bbef0a5aec075154c89a97b Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/lib/program.ld 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/81675/1
diff --git a/src/lib/program.ld b/src/lib/program.ld index 1784447..fa9826a 100644 --- a/src/lib/program.ld +++ b/src/lib/program.ld @@ -23,6 +23,11 @@ KEEP(*(.metadata_hash_anchor)); *(.text); *(.text.*); + /* Starting with version 18 LLVM the combination -ffunction-section -mcmodel=large + * puts code in .ltext rather than .text. + */ + *(.ltext); + *(.ltext.*);
#if ENV_HAS_CBMEM . = ALIGN(ARCH_POINTER_ALIGN_SIZE);