summaryrefslogtreecommitdiffstats
path: root/toolchain.inc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-07-08 18:12:49 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-07-08 19:38:35 +0200
commit668210966887a9d8e1dd7cb5df5103d11b46798a (patch)
tree8b33ed5e49099b94b9a4b81bfea53131ed18b546 /toolchain.inc
parentd05a6c80c7fd6e94e172b463467e449364943f3e (diff)
downloadcoreboot-668210966887a9d8e1dd7cb5df5103d11b46798a.tar.gz
coreboot-668210966887a9d8e1dd7cb5df5103d11b46798a.tar.bz2
coreboot-668210966887a9d8e1dd7cb5df5103d11b46798a.zip
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>
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc2
1 files changed, 1 insertions, 1 deletions
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),\