Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/84335?usp=email )
Change subject: lib: Compile memcpy and memset without LTO ......................................................................
lib: Compile memcpy and memset without LTO
GCC + LTO gets confused about this symbol not being present if compiled with LTO.
Change-Id: Ieecd198932545d1ac2bbe0354183519c544ff971 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/lib/Makefile.mk 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/84335/1
diff --git a/src/lib/Makefile.mk b/src/lib/Makefile.mk index 40df2b8..aa7e3b9 100644 --- a/src/lib/Makefile.mk +++ b/src/lib/Makefile.mk @@ -34,6 +34,10 @@ # Must reset CCACHE_EXTRAFILES or make applies it transitively to dependencies. $(objcbfs)/bootblock.lz4: CCACHE_EXTRAFILES=
+TARGETS := decompressor bootblock verstage romstage ramstage +$(foreach target,$(TARGETS),$(eval $(call src-to-obj,$(target),$(dir)/memcpy.c): CFLAGS_$(target) += -fno-lto)) +$(foreach target,$(TARGETS),$(eval $(call src-to-obj,$(target),$(dir)/memset.c): CFLAGS_$(target) += -fno-lto)) + decompressor-y += delay.c decompressor-$(CONFIG_GENERIC_GPIO_LIB) += gpio.c decompressor-y += memchr.c