From 53c772bbd7bb74423e9eda16701a711dd793dede Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Wed, 20 Nov 2019 16:20:49 +0000 Subject: [PATCH] Workaround riscv64 build when using binutils 2.33.1 PR: 242109 Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22457 --- usr.sbin/jail/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index 14266be83932..0a6eb7b60e1b 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -15,6 +15,11 @@ NO_WMISSING_VARIABLE_DECLARATIONS= YFLAGS+=-v CFLAGS+=-I. -I${.CURDIR} +# workaround for GNU ld (GNU Binutils) 2.33.1: +# relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2' +# https://bugs.freebsd.org/242109 +CFLAGS+=-Wl,--no-relax + .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 .endif