From owner-freebsd-ports@freebsd.org Thu Jan 9 17:00:37 2020 Return-Path: Delivered-To: freebsd-ports@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 D14AF1F387A for ; Thu, 9 Jan 2020 17:00:37 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 47tsnJ43R2z4NxC for ; Thu, 9 Jan 2020 17:00:36 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qv1-xf2a.google.com with SMTP id n8so3234598qvg.11 for ; Thu, 09 Jan 2020 09:00:36 -0800 (PST) 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=cx92VMVSM9FtPYDAKHQD2ph7jaNlyOBmowJwC6Rkk3A=; b=hXkQn2wTT8Avo3QC/FP1NX7Vw4eyuJWU1uXphUhZvgNE6SjZNJDfbviSIkY4tM9/Hb P0HG773yZ+PeMEeoEQj4He01X1gyVEg7AB3toomxbaZiJiTG6hyQ89rDlbEWKDPBf1XP kPGq+fjMwp1HGLXi+f6duXU3/phow6ELTWbtOnq4UMFJ3+Ae+K8VV0g84uVyLtJE2IFL 54R/ofpiOOXDry9BS1XI2ORxVuqzotPbFTstzwSY0XmQjPAwn4INjHJiVnT47prcOR63 xHe3+jtIV2GttnCEBIVWGGZvHCZD0fwyERqrk4PArIAElK3ZGygCRpzIdm+HCNSdqyQw z2Lg== 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=cx92VMVSM9FtPYDAKHQD2ph7jaNlyOBmowJwC6Rkk3A=; b=bYJ4VMjUcNdYdFFMdsM1S2dJ3ka5jdvvXzQrUoBerpzlZGjNrxyLqI/xivVnZPtZBE 3BXmUhVfZKHTEQtz1LJnt2Nuh0Q9RgHidqF9+OdqQSdI5hCwFmDOhBBnzTw/8O63sbDl qWJYGKlNHHJj6q6h16JS3zztsoCTF+Tb9OnPJBdaOAVRFTddYd+fUZM+iuLfojDsj/rR WX1vIVK76wBFI9qysXKMfA9XQiEtq9oQ++AjtLILzei80PMA6L96nYRfCTbIthaVW9X+ 35zLaShF55lmJ+FwIXzpnuHq2LoxzWcQ8GAI6vI9gSczdUpuul4rP1ZhDHZpimdQG6fP iwsA== X-Gm-Message-State: APjAAAUAoaJ1tmcLlNdePiubU//6GP3R1d8finDJaBZXyUGywIk8WLa4 tHncaAACT8hNifWRJ6jdC6Jl1w== X-Google-Smtp-Source: APXvYqzJ0lT19dHsekdu9AIvNbAHVL96aPczQzzXil1O80N9LD7nVxAdkAfCTkZcFlfsKkSKJwxFFQ== X-Received: by 2002:ad4:4b6d:: with SMTP id m13mr9895696qvx.240.1578589230571; Thu, 09 Jan 2020 09:00:30 -0800 (PST) Received: from mutt-hbsd ([63.88.83.120]) by smtp.gmail.com with ESMTPSA id 21sm3267090qky.41.2020.01.09.09.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 09:00:29 -0800 (PST) Date: Thu, 9 Jan 2020 12:00:30 -0500 From: Shawn Webb To: Ed Maste Cc: freebsd-arch , FreeBSD Ports Subject: Re: Retiring GNU objdump 2.17.50 Message-ID: <20200109170030.n6wq2zzxmnljbxg3@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT-HBSD FreeBSD 13.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="au5cgdu6f6ngm4ru" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 47tsnJ43R2z4NxC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=hXkQn2wT; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::f2a as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-6.14 / 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,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-2.04)[ip: (-6.18), ipnet: 2607:f8b0::/32(-2.12), asn: 15169(-1.85), country: US(-0.05)] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2020 17:00:37 -0000 --au5cgdu6f6ngm4ru Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 09, 2020 at 10:31:55AM -0500, Ed Maste wrote: > We currently install and use at most three tools from GNU binutils > 2.17.50, depending on target architecture: >=20 > 1. as - assembler > 2. ld - linker > 3. objdump - diagnostic / information tool >=20 > I hope to retire all use of these obsolete binutils before FreeBSD 13. > Here I'd like to discuss objdump. It is a diagnostic tool that > provides information about object files, binaries and libraries. It's > not required as a bootstrap tool (i.e., not needed to build FreeBSD > world or kernel). It is required to build a limited number of ports, > and is used by some developers. >=20 > I have a tracking PR for GNU objdump's retirement open in PR 229046. > https://bugs.freebsd.org/229046. >=20 > There are two ways we can proceed with its retirement: >=20 > 1. Remove it without replacement. Ports that need objdump to build > will have to depend on the binutils package/port, and users who wish > to use it will have to install it. >=20 > Related links for this path: > Ports exp-run: https://bugs.freebsd.org/212319 > Patch review: https://reviews.freebsd.org/D7338 >=20 > 2. Install llvm-objdump in its place (perhaps via a symlink). > llvm-objdump is broadly compatible in both command-line argument > parsing and output format, but there are many small differences and > it's not a full drop-in replacement. >=20 > Related links for this path: > Patch review: https://reviews.freebsd.org/D18307 Hey Ed, In preparation for Cross-DSO CFI, HardenedBSD made the switch to llvm-objdump a long while ago. Therea are, indeed, subtle breakages in ports. Not all options are supported. I added a LLVM_OBJDUMP_UNSAFE flag, and some ports still have trouble with it. Unfortunately, my spare time at this very moment is not large enough to allow me to document HardenedBSD's initial findings with regards to the switch. I wll, however, add that to my todo list. Thanks, --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD XMPP+OTR: lattera@is.a.hacker.sx GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --au5cgdu6f6ngm4ru Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAl4XXCkACgkQ/y5nonf4 4frD+Q//YyTB6dnl31XLQU11AnNslQdjkk8Zry+prkiOhVEDUAS5ToKJJEuAbSoF pt98zLhIC82cZXsirEhrl6y9H9KY40fGGi/Su7f1nnxNsdzgOnag+19j5bnz0LBI Kn5HXtKQTqfWVkbI/pkgoAIi4qBCRmJjOHF0ysNKcgYFd7GzKflPSTt6qAELgRT4 mZPG2BFgwWzPdyFUlBgkDfLcM9cZqJMXndcIJ7xrv82haYDRdWXPI++Pbxwm8E9v pCQJvHU+tgEVnRpwOm3Fw/IfBz63P9+z/bVDMdsFzyrcLcCQfyEyZyG56BGX3VIk RF6pMASCFtueJ0JYIk3F7Mr8xHrlxnpTViyRKL1sTP0IBDgfN1EHiviGE8PZA3iB 9Dtogipx/1sA5sz5gBxl9PzWXfM2dyQmCBUIxwq/eMjhImctTxlV0oUsjzpk552v V218icNEgwj8oPJTaH1Q7PyS4sRKHqGxhSCKSx4pMj0uGT/BR9DPFFKCD04AKYBU DUB4K2FHCkxWT61w5+CQ1GGbE4iZlw2FF2FGXwPUqYZ+SB9POjG+jL588dNua39t OMeywFdWHibWvWUFEAfOQORfKM2SE1E7c2hfFf9gCYXI4gg+sG77dIUOyJ4ZXh2L apeBq40rncF6kT0PbTUGW44sztlZt0ekmLYcuMe6MvXHWpOT9/4= =j4FK -----END PGP SIGNATURE----- --au5cgdu6f6ngm4ru--