Attention is currently required from: Raul Rangel, Stefan Reinauer, Julius Werner, Jacob Garber, Iru Cai, Elyes Haouas.

Paul Menzel uploaded patch set #14 to the change originally created by Jacob Garber.

View Change

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.

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, 55 insertions(+), 37 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/40811/14

To view, visit change 40811. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia551cf84c8f6eb3b010450fc572876a318a257d1
Gerrit-Change-Number: 40811
Gerrit-PatchSet: 14
Gerrit-Owner: Jacob Garber <jgarber1@ualberta.ca>
Gerrit-Reviewer: Iru Cai <mytbk920423@gmail.com>
Gerrit-Reviewer: Julius Werner <jwerner@chromium.org>
Gerrit-Reviewer: Martin L Roth <gaumless@gmail.com>
Gerrit-Reviewer: Michael Niewöhner <foss@mniewoehner.de>
Gerrit-Reviewer: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Reviewer: Philipp Hug <philipp@hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-CC: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-CC: Elyes Haouas <ehaouas@noos.fr>
Gerrit-CC: Keith Hui <buurin@gmail.com>
Gerrit-CC: Raul Rangel <rrangel@chromium.org>
Gerrit-CC: Stefan Reinauer <stefan.reinauer@coreboot.org>
Gerrit-Attention: Raul Rangel <rrangel@chromium.org>
Gerrit-Attention: Stefan Reinauer <stefan.reinauer@coreboot.org>
Gerrit-Attention: Julius Werner <jwerner@chromium.org>
Gerrit-Attention: Jacob Garber <jgarber1@ualberta.ca>
Gerrit-Attention: Iru Cai <mytbk920423@gmail.com>
Gerrit-Attention: Elyes Haouas <ehaouas@noos.fr>
Gerrit-MessageType: newpatchset