summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbr <br@FreeBSD.org>2016-02-18 14:38:37 +0000
committerbr <br@FreeBSD.org>2016-02-18 14:38:37 +0000
commit7b0a8f7745a391f822dfb41b7ced74931ac387a6 (patch)
treef6e38122c7918e0c3901fcd566c3ce342868d3ea
parent647d168b054d82fdb36129bc02d523e9349399b0 (diff)
downloadFreeBSD-src-7b0a8f7745a391f822dfb41b7ced74931ac387a6.zip
FreeBSD-src-7b0a8f7745a391f822dfb41b7ced74931ac387a6.tar.gz
Use medany (Medium/Anywhere) GCC code model for RISC-V.
This will allow us to use bigger relocations and all the 64-bit VA space.
-rw-r--r--sys/conf/kern.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index fb72a97..8b88d61 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -105,6 +105,7 @@ CFLAGS += -ffixed-x18
.endif
.if ${MACHINE_CPUARCH} == "riscv"
+CFLAGS.gcc+= -mcmodel=medany
INLINE_LIMIT?= 8000
.endif
OpenPOWER on IntegriCloud