From owner-freebsd-toolchain@freebsd.org Sat Sep 29 02:08:38 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 C60CE10BE177 for ; Sat, 29 Sep 2018 02:08:38 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.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 593978A9B8 for ; Sat, 29 Sep 2018 02:08:38 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 192D510BE175; Sat, 29 Sep 2018 02:08:38 +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 EA10C10BE174 for ; Sat, 29 Sep 2018 02:08:37 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B1B98A9B6 for ; Sat, 29 Sep 2018 02:08:37 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk1-x742.google.com with SMTP id c13-v6so5058810qkm.4 for ; Fri, 28 Sep 2018 19:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WGJnyzmkQG+c1A/KumhkKqwfk+BuxlVSx1Q8u1jdWsQ=; b=PDfVdX3OrKZD9fWPT/6Hd43omVTCsh8/jrrlEO0fCRvQ0gQKCKf5CD5txGC+kvZ0If d/+usoonb68iVBNY9oIKfBa0kvOvM7MnejypCLQ+xw2hMzSnFU+Y4AgFtSG5hg7bsP3W AUEfHbnvSUzK46zdLknCmQ6shiF/wnkiZ1Ogc5B7y7ey+VDvJSHl1ciWh30ft3AfWNLD JygyoaYJ559Hw5Y/3R0vJzDK/pfT6kwAPGg3nTSm5t24GiScHz8tjBDu2vf29RyoenTv eKjqSlorikb8v+g+Pxi2ol+Cj/JtaSpEq/x9M2rQsADgfcqDuHFhf89vV+dwz9IkgGVI dExQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WGJnyzmkQG+c1A/KumhkKqwfk+BuxlVSx1Q8u1jdWsQ=; b=LZZl8vkGSvNlAzL/b7K0oARmlS9OapudfcCNu84lFXKnF8j4G8F0NhWo/onA39fSAf VHfioUMzx/aA4eDOmK35M8eYZJTtqWJ/li4tXz0bWqUWCPhMUSnBcVcUrZSMWbZGNJuh vbCDp+QFP83IcvwY9O6Xmz53pqnol/h56XOHvOq54BR9ngah04cXCa7f8sAWSTA8qElc H9yRlSfAKEY0GG8qVoeWPc3tF8s/t8bNRjCWytHYbNEDp2dn1Q5igTLoDz/fE64fPXof Ww4g7JxWvJYq9M1YTNkLrV1x7Md1O17nMz5YIRo8xnojV2lLJ0rQO9tabNZ5lOxArB6u 8YOA== X-Gm-Message-State: ABuFfogNjswDPWLg8w29HtSsDWjsA+aIyLaCGUVe6UWlKK/RR+Km13bv E/3iAgxdZ4pJr2yKzqp2TEzwkShkh7u/bQ== X-Google-Smtp-Source: ACcGV60qIZdbBrtr9JVGqJFPEA8fsU2Zf3uKc9iulQVFJj7cS7XvU9mH4PNn7Px4GndiE6ZuwlI+eg== X-Received: by 2002:a37:a5c3:: with SMTP id o186-v6mr936987qke.338.1538186916450; Fri, 28 Sep 2018 19:08:36 -0700 (PDT) Received: from mutt-hbsd (public.freeflux.org. [185.56.80.242]) by smtp.gmail.com with ESMTPSA id a13-v6sm4020886qkg.94.2018.09.28.19.08.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 19:08:35 -0700 (PDT) Date: Fri, 28 Sep 2018 22:08:23 -0400 From: Shawn Webb To: Charlie Li Cc: toolchain@freebsd.org, current@freebsd.org Subject: Re: unknown -z value: common-page-size=4096 Message-ID: <20180929020823.cobrxxru3bbm63wh@mutt-hbsd> References: <8d87fcb0-5c36-39e8-72da-de55b26fdcdf@vishwin.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4ysek5ljdcxfhlfm" Content-Disposition: inline In-Reply-To: <8d87fcb0-5c36-39e8-72da-de55b26fdcdf@vishwin.info> X-Operating-System: FreeBSD mutt-hbsd 12.0-ALPHA7 FreeBSD 12.0-ALPHA7 HARDENEDBSD-12-CURRENT amd64 X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20180622 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 02:08:39 -0000 --4ysek5ljdcxfhlfm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > 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=3D4096 > ld.lld: error: unknown -z value: ifunc-noplt > *** [kernel.full] Error code 1 >=20 > make[2]: stopped in /usr/local/obj/usr/local/src/amd64.amd64/sys/ARDMORE >=20 > (ARDMORE is basically GENERIC-NODEBUG, not that it matters) >=20 > 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. >=20 > 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=3D4096: 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. Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD Tor-ified Signal: +1 443-546-8752 Tor+XMPP+OTR: lattera@is.a.hacker.sx GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --4ysek5ljdcxfhlfm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAluu3pIACgkQaoRlj1JF bu5BjQ/+Lct4DtdS1Hmi7KlikyYRn+cjEz+z0QqrQHx8krycK86nefbi5SjcYQyG KoFvEy5bo7FfjvG18phG/XGV6P2E0BMGm0h6bR6wagQGrnj+Fcdz4ar8ql8tcWQV N61JPqIjg/HC/AL0YMc6eJf2zNdLnuu80hIvfCH1tHajH3+KJEzWOMHSateJpCpN XBaKTZGg+Hrbkpha5TKWibJbZ06XT8F10j92Jcqi1oqDxClMsQp2o3dDBievyPgK vzOHYFts5+YBlLPjIpTREFxIkLt6LTH855POtU8xTNSKJVU07YqV2z3ARYua7pKg XSyPxAFNxkGF4bqj0Lg46NJSAMl42YwTeo+JKGvc7NeYrU5HoskrfprbuelQmEXe BfJkekusjPDuQNigjpKROHpESL2F6+d9hiE8kvw2kvAwQyjQ6IWxrUjFLm0g543z XgwasBPJtKPbG448rR9CrsE/suJGJoK9WnlcNG2XpV5ezJ9G5AIZ672Gb6cEy9x5 Ylwd/4HLjEBAFINNqNvKXT4JN+MGRmwQexm3c0AaqRizaRq8rSxb+e5nd1fQWMp4 zEDn8Wo5T7ZZkI69LcvNhSGbn2iFM+WMGK7a3vfx+Yin/ZHgPTDTN9mlXIJriJQv LK4Fqk9EKsSANxZy8IrN6LiQHoMpCcD9ZbMASmByGQqCRkpV9CA= =9FT+ -----END PGP SIGNATURE----- --4ysek5ljdcxfhlfm--