aboutsummaryrefslogtreecommitdiff
path: root/isa/Makefile
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-08-03 18:20:54 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-08-03 18:20:54 -0700
commitf99d03cb43d8350dd35672cd9e1b872628882727 (patch)
tree5a8bbd4af8cbd7b61d4544006c46627446eb97f6 /isa/Makefile
parentdaeb3cddd02e31c678d35197bc66570ecd106721 (diff)
downloadriscv-tests-f99d03cb43d8350dd35672cd9e1b872628882727.zip
riscv-tests-f99d03cb43d8350dd35672cd9e1b872628882727.tar.gz
riscv-tests-f99d03cb43d8350dd35672cd9e1b872628882727.tar.bz2
Use medany code model, not PIC, for ISA tests
Diffstat (limited to 'isa/Makefile')
-rw-r--r--isa/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/isa/Makefile b/isa/Makefile
index 8f174d1..3a8b265 100644
--- a/isa/Makefile
+++ b/isa/Makefile
@@ -23,7 +23,7 @@ default: all
RISCV_PREFIX=riscv64-unknown-elf-
RISCV_GCC = $(RISCV_PREFIX)gcc
ENTROPY = -DENTROPY=$(shell echo $$$$)
-RISCV_GCC_OPTS = $(ENTROPY) -static -fpic -fvisibility=hidden -nostdlib -nostartfiles -Wa,-march=RVIMAFDXhwacha
+RISCV_GCC_OPTS = $(ENTROPY) -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -Wa,-march=RVIMAFDXhwacha
RISCV_OBJDUMP = $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data
RISCV_SIM = spike --extension=hwacha