Date: Fri, 17 Sep 2021 21:43:34 -0400 From: Cameron Katri <me@cameronkatri.com> To: dev-commits-src-main@freebsd.org Subject: Re: git: 021385aba562 - main - Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain Message-ID: <20210918014334.zkjlq7q65nnotm4k@FreeBSDY540> In-Reply-To: <20210911144340.pmpxca7obksc7v5g@mutt-hbsd> References: <202109060924.1869O2Dk045877@gitrepo.freebsd.org> <20210911144340.pmpxca7obksc7v5g@mutt-hbsd>
next in thread | previous in thread | raw e-mail | index | archive | help
--zud3myv4n2jc6ejy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 11, 2021 at 10:43:40AM -0400, Shawn Webb wrote: > On Mon, Sep 06, 2021 at 09:24:02AM +0000, Alex Richardson wrote: > > The branch main has been updated by arichardson: > >=20 > > URL: https://cgit.FreeBSD.org/src/commit/?id=3D021385aba56279febcfdcc64= d23673a0106ae45d > >=20 > > commit 021385aba56279febcfdcc64d23673a0106ae45d > > Author: Alex Richardson <arichardson@FreeBSD.org> > > AuthorDate: 2021-09-06 08:49:49 +0000 > > Commit: Alex Richardson <arichardson@FreeBSD.org> > > CommitDate: 2021-09-06 08:49:49 +0000 > >=20 > > Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolc= hain > > =20 > > When WITH_LLVM_BINUTILS is set, we will install the LLVM binutils as > > ar/ranlib/nm/objcopy/etc. instead of the elftoolchain ones. > > Having the LLVM binutils instead of the elftoolchain ones allows us= to use > > features such as LTO that depend on binutils that understand LLVM I= R. > > Another benefit will be an improved user-experience when compiling = with > > AddressSanitizer, since ASAN does not symbolize backtraces correctl= y if > > addr2line is elftoolchain addr2line instead of llvm-symbolizer. > > See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/= 000062.html > > for more details. > > =20 > > This is currently off by default but will be turned on by default a= t some > > point in the near future. >=20 > Hey Alex, >=20 > It appears when MK_LLVM_BINUTILS is set, a strip binary/link doesn't > get installed. So /usr/bin/strip doesn't exist. This causes a problem > when building packages since even ports-mgmt/pkg relies on strip. >=20 > I'm working on a candidate patch to fix this right now. But if you > beat me to the punch, all the better. ;-) >=20 > Thanks, >=20 > --=20 > Shawn Webb > Cofounder / Security Engineer > HardenedBSD >=20 > https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/0= 3A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc Hello, I just noticed that strings is still the elftoolchain version, and llvm-readelf is not connected to the buildsystem at all. - Cameron Katri --=20 Cameron Katri Email: me@cameronkatri.com PGP Fingerprint: 7D3B36CEA40FCC2181FB6DCDBAFFD97826540F1C --zud3myv4n2jc6ejy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEfTs2zqQPzCGB+23Nuv/ZeCZUDxwFAmFFREYACgkQuv/ZeCZU DxyJGgf/Qc02c5g0AMIsjxC8eDnRTMSzx+oPkxp5hPWSZkaOOb+Kx/8r0pDrx0gl yBTQFbTOsdHPICjgrFThP/ltpRiWdLlPafs4iYw8e0KkDodb/penrtvz7/3s6zc1 sIvg02Nh1fQSeCCdKGB3XSbWQhIJCh3qsH0SD3bw0w61D6L8fAu4vqkHK+ZIhMFa ew93UY031UbWCZFAKXuiGx2v81XN1N9oVfw1mVG/RQBjb138lPCnqn7RraPB+HCA kh563sf18Uiqfdiu6cd12WDN1pWK7IozztqtwlM1Yc3NaK/Zt8TeThuV5IYqeLSW RsMB0Dg08JWp5/MwPwH+P/oEdx9rZQ== =W8Ba -----END PGP SIGNATURE----- --zud3myv4n2jc6ejy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210918014334.zkjlq7q65nnotm4k>