aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/Makefile
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-04-21 14:57:42 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-04-21 14:57:42 -0700
commitbcf83a88846468dcb294e2646270f433d967cf26 (patch)
tree1cfd4da40a0b590d6ab20d460a75d132be5e2d42 /benchmarks/Makefile
parent4496a12c2f0bca74d47c633cc5f970d214a3433a (diff)
downloadriscv-tests-bcf83a88846468dcb294e2646270f433d967cf26.zip
riscv-tests-bcf83a88846468dcb294e2646270f433d967cf26.tar.gz
riscv-tests-bcf83a88846468dcb294e2646270f433d967cf26.tar.bz2
Fix benchmark compilation/execution on RV32
Diffstat (limited to 'benchmarks/Makefile')
-rw-r--r--benchmarks/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 23ce02d..3cb899a 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -55,7 +55,7 @@ RISCV_GCC = $(RISCV_PREFIX)gcc
RISCV_GCC_OPTS = -static -Wa,-march=RVIMAFDXhwacha -std=gnu99 -O2 -ffast-math
RISCV_LINK = $(RISCV_GCC) -T $(bmarkdir)/common/test.ld $(incs)
RISCV_LINK_MT = $(RISCV_GCC) -T $(bmarkdir)/common/test-mt.ld
-RISCV_LINK_OPTS = -nostdlib -nostartfiles -ffast-math -lc
+RISCV_LINK_OPTS = -nostdlib -nostartfiles -ffast-math -lc -lgcc
RISCV_OBJDUMP = $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data
RISCV_SIM = spike