diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-07-08 18:12:49 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-07-08 19:38:35 +0200 |
commit | 668210966887a9d8e1dd7cb5df5103d11b46798a (patch) | |
tree | 8b33ed5e49099b94b9a4b81bfea53131ed18b546 | |
parent | d05a6c80c7fd6e94e172b463467e449364943f3e (diff) |
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>
-rw-r--r-- | toolchain.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain.inc b/toolchain.inc index 3e28bb9d0b..47e407f40c 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),\ |