[coreboot-gerrit] Patch set updated for coreboot: toolchain.inc: Add x86-64 support

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Mon Jun 15 18:45:32 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8690

-gerrit

commit 3794473e5af65f61a5bc2b3c5a01c5129294e73f
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Sun Mar 15 04:19:58 2015 +0100

    toolchain.inc: Add x86-64 support
    
    For now, share code with x86, and use the "large" code model.
    Also align the architecture specific CFLAGS in toolchain.inc
    for cosmetics.
    
    Change-Id: Ie84893d3460115802fbd70c28b10e709029c6b4e
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
    Signed-off-by: Scott Duplichan <scott at notabs.org>
---
 toolchain.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/toolchain.inc b/toolchain.inc
index 8b7b30a..a26da47 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -56,6 +56,7 @@ MAP-libverstage := verstage
 
 ARCHDIR-i386	:= x86
 ARCHDIR-x86_32	:= x86
+ARCHDIR-x86_64  := x86
 ARCHDIR-arm	:= arm
 ARCHDIR-arm64	:= arm64
 ARCHDIR-riscv	:= riscv
@@ -63,7 +64,7 @@ ARCHDIR-mips	:= mips
 
 CFLAGS_arm      := -ffunction-sections -fdata-sections
 
-CFLAGS_arm64 := -ffunction-sections -fdata-sections
+CFLAGS_arm64    := -ffunction-sections -fdata-sections
 
 CFLAGS_mips	:= -mips32r2 -G 0  -ffunction-sections -fdata-sections
 CFLAGS_mips	+= -mno-abicalls -fno-pic
@@ -71,6 +72,8 @@ CFLAGS_mips	+= -mno-abicalls -fno-pic
 CFLAGS_x86_32 += -ffunction-sections -fdata-sections
 CFLAGS_riscv	:= -ffunction-sections -fdata-sections
 
+CFLAGS_x86_64   := -mcmodel=large
+
 toolchain_to_dir = \
 	$(foreach arch,$(ARCH_SUPPORTED),\
 	$(eval CPPFLAGS_$(arch) += \



More information about the coreboot-gerrit mailing list