From owner-dev-commits-src-main@freebsd.org Sat Sep 11 14:43:48 2021 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 336C1673062 for ; Sat, 11 Sep 2021 14:43:48 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H6FqR1mQwz3jBR for ; Sat, 11 Sep 2021 14:43:47 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qv1-xf2c.google.com with SMTP id gf5so3202152qvb.9 for ; Sat, 11 Sep 2021 07:43:47 -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; bh=ILiNpWxQxHSU3+oVgXGh8LqFlPNC52Ghza6glcxLcu8=; b=If5wUvZcVgylGBcUOHkIZfeNbjOvHDkfh19B3p7vnec3sLf00rAyPjbqxn5Rb4JuEb ailWaYJLuZTcycyXBYclOI4RREYQHBxQseIDVtORo5yjyt4eYYgMvDX3eBhSPw+KydjB v9bQ92IZD7Z1A7vszCVHH02Ws24d+AUN9UJal402UqxrqYza0Jn/kYkB3AeZu6gA/22d cBDXab/Wz9PfSqI1s+GQAesqYoF7Ezu/0/523FdO6UjOi4SAh4c57gK1MOH4osJTL8wk nlDn6e+oBVieCeuytUJTTSG7IMLh664n8dUDhOzTkdv87FfLk68GXW4yY2m10+T2XqdD gP2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ILiNpWxQxHSU3+oVgXGh8LqFlPNC52Ghza6glcxLcu8=; b=zAC0DMkf5tTeBt2ux92kWAMqi0l/MjXPTOcPiCDUtphtoH2ijUKg41A4MKfT1NoCEY YdkZE9b/cPSJcGikoHuE9nn5AHNGpI5Fb1lkbsbNk1+7M2Df455xooKJXQe23eYcojxA OHFkB6cBP8g9HMITJ2Pl9VDk1lAJIFuqIa16O3UioHa42MjNHPPdmGyWVjK2XPiMZI77 JTVgb8/n5udDA/F4xXu0cu8iTz8qIx2HvYQFnt8gi26ruYltQcJIzFXkCrTDO89fkZhl MG1qbZTc9sE/QfJwgC3Z4+wCLTgKdmHkaVUn+icMRSPpLI5FIG2rFcU5TFQv8eSjaSU6 CgJA== X-Gm-Message-State: AOAM533ud89Wf5FnRHDblwCfC2Fjk43MXyKF4k+enTuCFg3WGtPTBokA qVuZdIIrnXBYN+6Us0Vca2lvB55i9CN3Ww== X-Google-Smtp-Source: ABdhPJwDXy3NBeTz2gbe9XNaeRR+/YN/KlnaKgKACgrC8VAHbTPASbAOK3cqZFm6juc/WZSDZcryCA== X-Received: by 2002:a0c:8e83:: with SMTP id x3mr2478656qvb.40.1631371421136; Sat, 11 Sep 2021 07:43:41 -0700 (PDT) Received: from mutt-hbsd (pool-100-16-224-136.bltmmd.fios.verizon.net. [100.16.224.136]) by smtp.gmail.com with ESMTPSA id l126sm1325807qke.96.2021.09.11.07.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Sep 2021 07:43:40 -0700 (PDT) Date: Sat, 11 Sep 2021 10:43:40 -0400 From: Shawn Webb To: Alex Richardson Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 021385aba562 - main - Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain Message-ID: <20210911144340.pmpxca7obksc7v5g@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 14.0-CURRENT-HBSD FreeBSD 14.0-CURRENT-HBSD X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <202109060924.1869O2Dk045877@gitrepo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oonxqctudmjayiat" Content-Disposition: inline In-Reply-To: <202109060924.1869O2Dk045877@gitrepo.freebsd.org> X-Rspamd-Queue-Id: 4H6FqR1mQwz3jBR X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=If5wUvZc; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::f2c as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-5.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-main@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2c:from]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[dev-commits-src-main]; RECEIVED_SPAMHAUS_PBL(0.00)[100.16.224.136:received] X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2021 14:43:48 -0000 --oonxqctudmjayiat Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D021385aba56279febcfdcc64d2= 3673a0106ae45d >=20 > commit 021385aba56279febcfdcc64d23673a0106ae45d > Author: Alex Richardson > AuthorDate: 2021-09-06 08:49:49 +0000 > Commit: Alex Richardson > CommitDate: 2021-09-06 08:49:49 +0000 >=20 > Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolcha= in > =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 t= o use > features such as LTO that depend on binutils that understand LLVM IR. > Another benefit will be an improved user-experience when compiling wi= th > AddressSanitizer, since ASAN does not symbolize backtraces correctly = if > addr2line is elftoolchain addr2line instead of llvm-symbolizer. > See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/00= 0062.html > for more details. > =20 > This is currently off by default but will be turned on by default at = some > point in the near future. Hey Alex, 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. I'm working on a candidate patch to fix this right now. But if you beat me to the punch, all the better. ;-) Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --oonxqctudmjayiat Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmE8wJkACgkQ/y5nonf4 4fphpA/8CIm0S2DGg5Hau2eKSPGLsgpbhmkj9kwpB4zXPdMm6Go7YqQFSlTXHvaI nyzP2X+QZgt4z794fUiiFzX/y0P2elW02WQZG60fJKLZ0RetG32SLT/IUG6tM6at Ngwwed5UEOMRfocdT5oSW7lt8kyZk7XRgWqx3zresEg/mNKsCj7LecLbX3J0UQeV naoDAmrTCAJVBqPka3dIW6VycTbbUiEI8ysZbnu5BHe/N4/uLXGUIiT0xvPozJNS pljHZc8Y4Sahf52AGEUa7b0EVZprGH1DwI2d1oi7iW8YinZ4Kw5TvwYgw3Zvglt1 A3pt0vIOBEfskCtxrQlDdhPqnVSs2v2jGAWhpupH3V5+em8cPvvpDl7Js2cZ3Leg 7X4nvWPTewM9PgnX7ToCZeKrGr02+hMLe77KQri6ymnVy5duFxD6+bjB9yugOeRO ADGnKRFxTq9J5KOuOa2wguJQ/q4DtVj+5N50gb9v/UWWGF174TPpL+nQ5UGTJB/f kIKnYCu+b9uHXXUHtLzdpCVCPklOsG8yquPdrN94N5276FkxRS2a5hmPn8GEy5fS YR30eXMQoc1gq5s+Q7Kqw89+lLPPmskmZ62Kmx/ib7boXL/cr/dWFfQEkRNmxoJM gvynHP+U68pEkoHyiSaMJ49yuqY+IfTSvYUWazDrSsy+/xMA0cQ= =EqXr -----END PGP SIGNATURE----- --oonxqctudmjayiat--