Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2019 16:20:49 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354896 - head/usr.sbin/jail
Message-ID:  <201911201620.xAKGKn32072192@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Wed Nov 20 16:20:49 2019
New Revision: 354896
URL: https://svnweb.freebsd.org/changeset/base/354896

Log:
  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

Modified:
  head/usr.sbin/jail/Makefile

Modified: head/usr.sbin/jail/Makefile
==============================================================================
--- head/usr.sbin/jail/Makefile	Wed Nov 20 16:06:48 2019	(r354895)
+++ head/usr.sbin/jail/Makefile	Wed Nov 20 16:20:49 2019	(r354896)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911201620.xAKGKn32072192>