From: Andrew Waterman Date: Sun, 22 May 2016 23:18:29 +0000 (-0700) Subject: Use -mcmodel=medany, not -fpie X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4ab58796d5787bef6617e0fc760292ec3a4a79d;p=riscv-tests.git Use -mcmodel=medany, not -fpie We shouldn't generate a GOT. --- 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