diff options
author | Aaron Durbin <adurbin@chromium.org> | 2015-05-19 15:51:47 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2015-05-20 19:39:14 +0200 |
commit | b4ae5fd107248a51e63474c67afc092d521358c1 (patch) | |
tree | 8de06a2496558506856d8477577dce3573be90e1 | |
parent | cedfb3270c28f82428d0cba7b9e88613303a141a (diff) |
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 <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10258
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r-- | toolchain.inc | 1 |
1 files changed, 1 insertions, 0 deletions
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),\ |