From 668210966887a9d8e1dd7cb5df5103d11b46798a Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 8 Jul 2015 18:12:49 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/10852 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- toolchain.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain.inc') diff --git a/toolchain.inc b/toolchain.inc index 3e28bb9d0b1e..47e407f40ca1 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -72,7 +72,7 @@ CFLAGS_mips += -mno-abicalls -fno-pic CFLAGS_x86_32 += -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 = \ $(foreach arch,$(ARCH_SUPPORTED),\ -- cgit v1.2.3