summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/Makefile.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/arm/Makefile.mk b/src/arch/arm/Makefile.mk
index 3f8232f68a..ef87dcf14f 100644
--- a/src/arch/arm/Makefile.mk
+++ b/src/arch/arm/Makefile.mk
@@ -19,6 +19,10 @@ $(stages_o): $(stages_c) $(obj)/config.h
@printf " CC $(subst $(obj)/,,$(@))\n"
$(CC_arm) -I. $(CPPFLAGS_arm) -c -o $@ $< -marm
+# Clang LTO does not like the aliasing in here.
+TARGETS := decompressor bootblock verstage romstage ramstage rmodules_arm
+$(foreach target,$(TARGETS),$(eval $(call src-to-obj,$(target),$(dir)/eabi_compat.c): CFLAGS_$(target) += -fno-lto))
+
endif # CONFIG_ARCH_ARM
###############################################################################