diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-01-20 19:21:24 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-01-20 19:22:59 -0800 |
commit | 08380798fab6285bfddb406344e21a671b6a02f9 (patch) | |
tree | 52503406c58d5d7914b19a42f298f916f4dbe4ba /benchmarks | |
parent | 6a1a38d421fd3e24bdc179d58d33572636b903b2 (diff) | |
download | riscv-tests-08380798fab6285bfddb406344e21a671b6a02f9.zip riscv-tests-08380798fab6285bfddb406344e21a671b6a02f9.tar.gz riscv-tests-08380798fab6285bfddb406344e21a671b6a02f9.tar.bz2 |
Fix build with glibc
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/Makefile | 2 | ||||
-rw-r--r-- | benchmarks/common/syscalls.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index bc17927..531d981 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -53,7 +53,7 @@ RISCV_GCC ?= $(RISCV_PREFIX)gcc RISCV_GCC_OPTS ?= -mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf RISCV_LINK ?= $(RISCV_GCC) -T $(src_dir)/common/test.ld $(incs) RISCV_LINK_MT ?= $(RISCV_GCC) -T $(src_dir)/common/test-mt.ld -RISCV_LINK_OPTS ?= -nostdlib -nostartfiles -ffast-math -lgcc +RISCV_LINK_OPTS ?= -static -nostdlib -nostartfiles -lgcc RISCV_OBJDUMP ?= $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data RISCV_SIM ?= spike --isa=rv$(XLEN)gc diff --git a/benchmarks/common/syscalls.c b/benchmarks/common/syscalls.c index 7357fab..3f15aac 100644 --- a/benchmarks/common/syscalls.c +++ b/benchmarks/common/syscalls.c @@ -11,6 +11,8 @@ #define SYS_exit 93 #define SYS_stats 1234 +#undef strcmp + extern volatile uint64_t tohost; extern volatile uint64_t fromhost; |