aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-05-22 16:18:29 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-05-22 16:18:29 -0700
commitd4ab58796d5787bef6617e0fc760292ec3a4a79d (patch)
tree81e154f31631bb37d2004c8e90e97037fb1eac5b
parentd9c32d288b69197814c4d5e0bae93da55649c377 (diff)
downloadriscv-tests-d4ab58796d5787bef6617e0fc760292ec3a4a79d.zip
riscv-tests-d4ab58796d5787bef6617e0fc760292ec3a4a79d.tar.gz
riscv-tests-d4ab58796d5787bef6617e0fc760292ec3a4a79d.tar.bz2
Use -mcmodel=medany, not -fpie
We shouldn't generate a GOT.
-rw-r--r--benchmarks/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile
index 8cc1e35..e294f72 100644
--- a/benchmarks/Makefile
+++ b/benchmarks/Makefile
@@ -48,7 +48,7 @@ HOST_COMP = gcc $(HOST_OPTS)
RISCV_PREFIX ?= riscv64-unknown-elf-
RISCV_GCC ?= $(RISCV_PREFIX)gcc
-RISCV_GCC_OPTS ?= -fpie -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf
+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