From owner-freebsd-toolchain@freebsd.org Sat Sep 29 11:36:32 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95EDE10972AD for ; Sat, 29 Sep 2018 11:36:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 36F3F77DF0 for ; Sat, 29 Sep 2018 11:36:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id F012D10972AB; Sat, 29 Sep 2018 11:36:31 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE93B10972A8; Sat, 29 Sep 2018 11:36:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79BC077DEF; Sat, 29 Sep 2018 11:36:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [192.168.0.15] (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1300A39E9E; Sat, 29 Sep 2018 13:36:24 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_1D2DA8A5-7285-48F8-A773-C3DBFB86C313"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: unknown -z value: common-page-size=4096 Date: Sat, 29 Sep 2018 13:36:13 +0200 In-Reply-To: <20180929020823.cobrxxru3bbm63wh@mutt-hbsd> Cc: Charlie Li , toolchain@freebsd.org, current@freebsd.org To: Shawn Webb References: <8d87fcb0-5c36-39e8-72da-de55b26fdcdf@vishwin.info> <20180929020823.cobrxxru3bbm63wh@mutt-hbsd> X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2018 11:36:32 -0000 --Apple-Mail=_1D2DA8A5-7285-48F8-A773-C3DBFB86C313 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 29 Sep 2018, at 04:08, Shawn Webb wrote: > > On Fri, Sep 28, 2018 at 10:01:31PM -0400, Charlie Li wrote: >> I've switched to using devel/xtoolchain-llvm70 yesterday to build amd64 >> base starting with r338990, and among other issues, ld.lld70 refuses to >> link the kernel: >> >> Building /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE/kernel.full >> --- kernel.full --- >> linking kernel.full >> ld.lld: error: unknown -z value: common-page-size=4096 >> ld.lld: error: unknown -z value: ifunc-noplt >> *** [kernel.full] Error code 1 >> >> make[2]: stopped in /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE >> >> (ARDMORE is basically GENERIC-NODEBUG, not that it matters) >> >> The ifunc-noplt is a known issue, it obviously didn't make it upstream >> in time for LLVM 7.0.0, and thus we carry the feature downstream. >> >> The crux of this link error though, emaste@ quipped in PR 230604 that >> LLD prior to 7.0.0 accepted but ignored unknown options, but now at >> least 7.0.0 disallows unknown options entirely. Which brings up the -z >> common-page-size=4096: has LLD been ignoring this part the whole time, >> and is it of any meaningful use anymore (it seemed to mean something >> with bfd)? > > I noticed the same issues. I reverted parts of recent work by upstream > FreeBSD in HardenedBSD's Cross-DSO CFI branch since that branch uses > clang/llvm/lld 7.0.0. You can apply this changeset from the clang700-import branch: https://svnweb.freebsd.org/changeset/base/337325 or just use the clang700-import branch wholesale. :-) -Dimitry --Apple-Mail=_1D2DA8A5-7285-48F8-A773-C3DBFB86C313 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW69jrQAKCRCwXqMKLiCW o+I7AKCTGstZaKIYQwNR5r2dp/IzXuCk8wCgnmR2GfT//IiJGT3u3BD5yMqVTVo= =9tUD -----END PGP SIGNATURE----- --Apple-Mail=_1D2DA8A5-7285-48F8-A773-C3DBFB86C313--