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>
This commit is contained in:
parent
cedfb3270c
commit
b4ae5fd107
|
@ -69,6 +69,7 @@ CFLAGS_mips := -mips32r2 -G 0 -ffunction-sections -fdata-sections
|
||||||
CFLAGS_mips += -mno-abicalls -fno-pic
|
CFLAGS_mips += -mno-abicalls -fno-pic
|
||||||
|
|
||||||
CFLAGS_x86_32 += -ffunction-sections -fdata-sections
|
CFLAGS_x86_32 += -ffunction-sections -fdata-sections
|
||||||
|
CFLAGS_riscv := -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
toolchain_to_dir = \
|
toolchain_to_dir = \
|
||||||
$(foreach arch,$(ARCH_SUPPORTED),\
|
$(foreach arch,$(ARCH_SUPPORTED),\
|
||||||
|
|
Loading…
Reference in New Issue