Date: Fri, 28 Sep 2018 22:08:23 -0400 From: Shawn Webb <shawn.webb@hardenedbsd.org> To: Charlie Li <ml@vishwin.info> Cc: toolchain@freebsd.org, current@freebsd.org Subject: Re: unknown -z value: common-page-size=4096 Message-ID: <20180929020823.cobrxxru3bbm63wh@mutt-hbsd> In-Reply-To: <8d87fcb0-5c36-39e8-72da-de55b26fdcdf@vishwin.info> References: <8d87fcb0-5c36-39e8-72da-de55b26fdcdf@vishwin.info>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180929020823.cobrxxru3bbm63wh>