Attention is currently required from: Julius Werner.
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/84005?usp=email )
Change subject: arch/arm: Fix building with LTO ......................................................................
arch/arm: Fix building with LTO
With LTO clang cannot find the aliased symbols.
Change-Id: I3d89c093cee2636e648987a06afb0d325b1d96ff Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/arch/arm/Makefile.mk 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/84005/1
diff --git a/src/arch/arm/Makefile.mk b/src/arch/arm/Makefile.mk index 3f8232f..3374e9a 100644 --- a/src/arch/arm/Makefile.mk +++ b/src/arch/arm/Makefile.mk @@ -97,6 +97,8 @@
ramstage-y += stages.c ramstage-y += div0.c +# Clang LTO does not like the aliasing in here. +$(call src-to-obj,ramstage,$(dir)/eabi_compat.c): CFLAGS_ramstage += -fno-lto ramstage-y += eabi_compat.c ramstage-y += boot.c ramstage-y += tables.c