From b4ae5fd107248a51e63474c67afc092d521358c1 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 19 May 2015 15:51:47 -0500 Subject: riscv: enable function and data sections Every other arch we support has these options enabled. Enable it to make everything a lot easier in compiling common code. Change-Id: I86205468bbd793fbd377e471a1d32be617af5302 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/10258 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Patrick Georgi --- toolchain.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'toolchain.inc') diff --git a/toolchain.inc b/toolchain.inc index 36402fec9e..e7edf71aa1 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -69,6 +69,7 @@ CFLAGS_mips := -mips32r2 -G 0 -ffunction-sections -fdata-sections CFLAGS_mips += -mno-abicalls -fno-pic CFLAGS_x86_32 += -ffunction-sections -fdata-sections +CFLAGS_riscv := -ffunction-sections -fdata-sections toolchain_to_dir = \ $(foreach arch,$(ARCH_SUPPORTED),\ -- cgit v1.2.3