Use -mcmodel=medany, not -fpie
authorAndrew Waterman <waterman@cs.berkeley.edu>
Sun, 22 May 2016 23:18:29 +0000 (16:18 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Sun, 22 May 2016 23:18:29 +0000 (16:18 -0700)
We shouldn't generate a GOT.

benchmarks/Makefile

index 8cc1e35ddfe8c11338880d3a058af6749758744d..e294f720df287fc392a60a66cf01f0288bb19493 100644 (file)
@@ -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