Attention is currently required from: Iru Cai, Jacob Garber, Julius Werner, Paul Menzel, Raul Rangel.
Elyes Haouas has uploaded a new patch set (#17) to the change originally created by Jacob Garber. ( https://review.coreboot.org/c/coreboot/+/40811?usp=email )
Change subject: arch,toolchain,xcompile: Use the compiler frontend as a linker ......................................................................
arch,toolchain,xcompile: Use the compiler frontend as a linker
Code generation when using LTO is not done until after linking, so the compiler must be invoked at all linking stages instead of the linker. Replace $(LD) with $(CC), and prefix all linker-specific flags with -Wl and replace the spaces by commas so they will be passed to the linker.
Pass CFLAGS_common to SMM targets, so `-m32` gets passed, results in
clang: error: argument unused during compilation: '-nostdinc' [-Werror,-Wunused-command-line-argument]
Pass CFLAGS_smm and CFLAGS_smmstub.
Change-Id: Ia551cf84c8f6eb3b010450fc572876a318a257d1 Signed-off-by: Jacob Garber jgarber1@ualberta.ca Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M Makefile.inc M src/arch/arm/Makefile.inc M src/arch/arm64/Makefile.inc M src/arch/ppc64/Makefile.inc M src/arch/riscv/Makefile.inc M src/arch/x86/Makefile.inc M src/cpu/x86/smm/Makefile.inc M src/lib/Makefile.inc M toolchain.inc M util/xcompile/xcompile 10 files changed, 37 insertions(+), 37 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/40811/17