From nobody Wed Aug 04 12:13:46 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7CBB515E9F8B for ; Wed, 4 Aug 2021 12:13:48 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 4GfrHw2Rvyz3n74 for ; Wed, 4 Aug 2021 12:13:48 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk1-x72a.google.com with SMTP id t3so1170678qkg.11 for ; Wed, 04 Aug 2021 05:13:48 -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=l1aC55U1/17jZz0HqoYk0H7GYLhtJmEwTz4dEG1//CU=; b=DLl1LJ6vXIMhEo3ImQydzAKsPqJpLuwJEoSKMW1idx2FqpOVERoWEg9iOQjYTo/6zd r6YGmNc3Wqb+wRwOXhQzUUs1l7SmOu/tTsyoKvN0ydLXVzaVnhgJmDFIDtpCAAPfYbBU jsszGcZkuntV/Zo3dvB8UZC1D1w5DvQjMOhiPtWBGnIB7M6ndvhum1nY85vyJ1JHhB07 qiCeH3UT/Bx7QksyH8RjzYfHXyZa8sk1VFwblzR6eGhCMGvuYB8jKgNGNMin2n4fX/JQ sXREaEBQiUzuniNtd0MLe6qaUSXp8cqcH/gm+rdo55uUHDj8RQWZJ2QTfnMQQCmajn8V In4w== 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; bh=l1aC55U1/17jZz0HqoYk0H7GYLhtJmEwTz4dEG1//CU=; b=BlACjy0zeTH9X8r8xilUFuOOlEJ6O1feAKW4WYJ3HXhO8s/mZxFznhX7A8f5B97lJg iO3nHN0hllkwvspIxX8gpAzlWiWt72FZw5Fuv3xEcoYJKBMEXn/fEwGCFXRLJf4nkycF Bk2LpKFqn7b1PMHUV6GAiX4BdxJ199+s7CQfPvIyrFjen2OUZCY8lYu8oQb0NkgLVfQU 9/OXRzrooQD15WZwFH12YV9tdGAX7mvacI78q1bPqou/amTRusBnIpyDDP7oJyAm8lWi B/DqNE8xNByDY5QlbgfZFP8w5CSdgsRI1TVnPY6gf8KFUQcJQn8zQJBnyp8EN8fYkYl+ cwMA== X-Gm-Message-State: AOAM533GLW9Pa+B36BCipd24c2dJJPvhN0j0njqDIWbsCO/womhr+U/o miyBgP8RpunUa/Yo+hYTJ2XMJw== X-Google-Smtp-Source: ABdhPJzJlvULgOVkvfcu08h8fJuuXZFGP7uWmu5ZZRIf41qMlZwO8WbunrpVjbUwUaCp1SaRRQmc6Q== X-Received: by 2002:a05:620a:f03:: with SMTP id v3mr26069474qkl.96.1628079227965; Wed, 04 Aug 2021 05:13:47 -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 o2sm1187199qkm.109.2021.08.04.05.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 05:13:47 -0700 (PDT) Date: Wed, 4 Aug 2021 08:13:46 -0400 From: Shawn Webb To: Ed Maste Cc: "freebsd-toolchain@FreeBSD.org" , FreeBSD Hackers , Dimitry Andric , Alexander Richardson Subject: Re: Migrating to LLVM binutils tools (ar, nm, addr2line, etc.) Message-ID: <20210804121346.b6xelxg3mwellffe@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: <20210802131132.c7egr6cphq322qcj@mutt-hbsd> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oagg7em5zd5opkop" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4GfrHw2Rvyz3n74 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --oagg7em5zd5opkop Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 03, 2021 at 09:09:40PM -0400, Ed Maste wrote: > On Mon, 2 Aug 2021 at 09:11, Shawn Webb wrot= e: > > > > For most cases, when elftc-ar fails, it does not set the exitcode to > > non-zero. This tricks the ports tree to continue to build a port where > > elftc-ar actually errored. >=20 > Thanks for the notice - I didn't see this email until now, but saw the > related discussion on HardenedBSD's IRC channel this morning. >=20 > Note that FreeBSD ar is different from ELF Tool Chain's ar; the latter > is a fork of FreeBSDs, and there are some distinct bug fixes or > improvements in each version that are not present in the other. Here > FreeBSD's ar is buggy, and llvm-ar, GNU ar, and ELF Tool Chain's ar > all return a non-zero exit code. >=20 > Code review with fix for FreeBSD's ar: https://reviews.freebsd.org/D31402 > Exp-run request: https://bugs.freebsd.org/257599 I was mistaken about which ar was errant. I apologize. Thank you very much for the clarification. Thanks again, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --oagg7em5zd5opkop Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmEKhHgACgkQ/y5nonf4 4frxmg//Xj5XUk+59S/6aDCupkXPt6flYjOywX19yu1Zc96mvoRO+NIRu44PSaDG ewjxuz/Nqpm7PxOmlEWyzBXc3kIO+zSH3cdpCw61yiiksF4iHp3mb/Bqlw125IJY eI7jvm4v2BMBfh33y+FbuKsnV/1q33VGQpIFhLndPB1PKvl0r/a2CxaRVOLPxsbj U3GNt/jvC2djWxPzqb/k3gCiSyXnUykuI86GUgT0O44OuTkJZPlUr0GjfNIqHFdk wEW3zhIKaoaKxNx5AShPy1chc2S+jDepg3GEwfQHUmAAtaddxqZ3W3wbkoJ1CxwI pXQDZFTQHCBVElSFyKEyDr5FICz+icWHWotzKYbitpaRm5o7E/N8ePRMfnczAXJo 5ysnnHUJ+k+s8+1FG67BuLKfD2G8yX5XEEbI5l0bAhZe0Ubea+Vrhpnth5L2FAJx uhxK/Ex3riBOPnDJA2Iy5zLJWdemgm1y08XZgRwDdsgTOSRdTxMkYnJwwkwNJtu2 CVMT5pqi7k42/r52tJS9v2Jpjv7jArlG+4Yb32DilPX7WJVEp/57m3hDNWChujOy OBhO9ya7HXPYn+rn4IY3RDzZfTazJOb6Sp6B95MdPs34bo3TDOO+f6mZwha8fqQ2 u8RF1iTJ+7Ti8N5xAicjppgpTO2kOQhGS2Y/JxYhWeAA5Gt8g3I= =L+L+ -----END PGP SIGNATURE----- --oagg7em5zd5opkop--