build system / amd64: Avoid GCC taking the ABI spec too literally

-mno-red-zone is an option that pretty much every barebone software package
(eg. kernel, bootloader, ...) needs to use.
We weren't hurt by it yet, but make sure we won't in the future.

Change-Id: Ide5b63424ec1be5bf7bcade10540190b9871593b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10852
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Patrick Georgi 2015-07-08 18:12:49 +02:00 committed by Patrick Georgi
parent d05a6c80c7
commit 6682109668
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ CFLAGS_mips += -mno-abicalls -fno-pic
CFLAGS_x86_32 += -ffunction-sections -fdata-sections CFLAGS_x86_32 += -ffunction-sections -fdata-sections
CFLAGS_riscv += -ffunction-sections -fdata-sections CFLAGS_riscv += -ffunction-sections -fdata-sections
CFLAGS_x86_64 += -mcmodel=large CFLAGS_x86_64 += -mcmodel=large -mno-red-zone
toolchain_to_dir = \ toolchain_to_dir = \
$(foreach arch,$(ARCH_SUPPORTED),\ $(foreach arch,$(ARCH_SUPPORTED),\