Use medany code model, not PIC, for ISA tests
authorAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 4 Aug 2015 01:20:54 +0000 (18:20 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 4 Aug 2015 01:20:54 +0000 (18:20 -0700)
isa/Makefile

index 8f174d14e3ac639f4aac50f7ea48ff09dd70fc47..3a8b2651610255ec95c940844b2d7d2c8def765b 100644 (file)
@@ -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