From 5668e262ffa14ea202e65d6f50e37efe1670d965 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 14 Jul 2015 12:03:11 -0700 Subject: [PATCH] toolchain: Add -mgeneral-regs-only to CFLAGS for arm64 BUG=None BRANCH=None TEST=Compiles successfully and boots to kernel prompt on smaug Change-Id: I7eb75b215798a63157bae04d9d44dbd6f95a5715 Signed-off-by: Patrick Georgi Original-Commit-Id: 6e5ecf9b45fa35e3c87bf6ef4bd2ea01680c8826 Original-Change-Id: I36a20d65d7ccaa21fdeb6070d43c2bb0ae22a16b Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/285553 Original-Trybot-Ready: Furquan Shaikh Original-Tested-by: Furquan Shaikh Original-Reviewed-by: Patrick Georgi Original-Commit-Queue: Furquan Shaikh Reviewed-on: http://review.coreboot.org/10959 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- toolchain.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain.inc b/toolchain.inc index 47e407f40c..89bc55c6bb 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -64,7 +64,7 @@ ARCHDIR-mips := mips CFLAGS_arm += -ffunction-sections -fdata-sections -CFLAGS_arm64 += -ffunction-sections -fdata-sections +CFLAGS_arm64 += -ffunction-sections -fdata-sections -mgeneral-regs-only CFLAGS_mips += -mips32r2 -G 0 -ffunction-sections -fdata-sections CFLAGS_mips += -mno-abicalls -fno-pic