Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81777?usp=email )
Change subject: Makefile.mk: Account for large code model sections in cbfs_struct ......................................................................
Makefile.mk: Account for large code model sections in cbfs_struct
Starting with version 18 LLVM puts code and data generated with -ffunction-section -mcmodel=large inside sections with an 'l' prefix.
Change-Id: Ie07779ef548337772183ffe2d642f971d8cceae7 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M Makefile.mk 1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/81777/1
diff --git a/Makefile.mk b/Makefile.mk index d7110a9..a47df95 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -366,7 +366,9 @@ $(eval $(2): $(1) $(obj)/build.h $(obj)/fmap_config.h $(KCONFIG_AUTOHEADER); \ printf " CC+STRIP $(1)\n"; \ $(CC_ramstage) -MMD $(CPPFLAGS_ramstage) $(CFLAGS_ramstage) --param asan-globals=0 $$(ramstage-c-ccopts) -include $(KCONFIG_AUTOHEADER) -MT $(2) -o $(2).tmp -c $(1) && \ - $(OBJCOPY_ramstage) -O binary --only-section='.data*' --only-section='.bss*' --set-section-flags .bss*=alloc,contents,load $(2).tmp $(2); \ + $(OBJCOPY_ramstage) -O binary --only-section='.data*' --only-section='.bss*' \ + --only-section='.ldata*' --only-section='.lbss*' \ + --set-section-flags .bss*=alloc,contents,load $(2).tmp $(2); rm -f $(2).tmp) \ $(eval DEPENDENCIES += $(2).d)