From owner-freebsd-arch@freebsd.org Thu Jan 9 15:32:10 2020 Return-Path: Delivered-To: freebsd-arch@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 9CA9A1F12AE; Thu, 9 Jan 2020 15:32:10 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-il1-f195.google.com (mail-il1-f195.google.com [209.85.166.195]) (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 47tqqF67vjz4HSy; Thu, 9 Jan 2020 15:32:09 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-il1-f195.google.com with SMTP id v15so6073391iln.0; Thu, 09 Jan 2020 07:32:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+u2kwKu+8WehjzaydXcxDQLU5qk2Lfs5T5GD9GOvcRk=; b=FZAZyTgqRvcPK3yxWyfH/dovWOXaKro/WWM9RKdnh0pbfpCUSI0+UzZefaE+rLc5EP qj8rWjXr/bvlvqAwY0D2XyU1tABbjhBvyRDr7qK+oDfH1URBVYiOiCP3cIXzDzsAhBgD Xds4f8rTJrygbMCAbFfythBtRtMWgtF81j02igdYlPhB9QtzIMCCgALIDChTB14mc15c Qlf3MFXBsY+braFWtbf0He3fzhEJiYY/bRzyOSG0Cr6Xuut1YhYpkzgVaim1B1v4mW5l c1b9vcjZZXys5xOENVsL8a+KV5W7n0EramBIikjNmwRus5GFRmejHqDII9aflQdt3lRU qbAw== X-Gm-Message-State: APjAAAVgZ8RMgGC97FFzze554TEjAj5o9jPynAWfnNtKF271X6S8h/B+ pBB9zwklzUlMaC7GQ0AfZvuPyQZ0ouDonvfHb5Z/M0hY X-Google-Smtp-Source: APXvYqybb3e1wpNtaxO/tmj0lE4l9uHiOExeeTBFVkBGO3dogHq63AOfPWW9Gw6tfIv6MbcMj60zpUh+B94ibjsYCXI= X-Received: by 2002:a92:4448:: with SMTP id a8mr9504881ilm.256.1578583927666; Thu, 09 Jan 2020 07:32:07 -0800 (PST) MIME-Version: 1.0 From: Ed Maste Date: Thu, 9 Jan 2020 10:31:55 -0500 Message-ID: Subject: Retiring GNU objdump 2.17.50 To: freebsd-arch , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47tqqF67vjz4HSy X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.195 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-3.09 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-1.09)[ip: (-0.48), ipnet: 209.85.128.0/17(-3.09), asn: 15169(-1.85), country: US(-0.05)]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[195.166.85.209.list.dnswl.org : 127.0.5.0]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[195.166.85.209.rep.mailspike.net : 127.0.0.17]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2020 15:32:10 -0000 We currently install and use at most three tools from GNU binutils 2.17.50, depending on target architecture: 1. as - assembler 2. ld - linker 3. objdump - diagnostic / information tool 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. I have a tracking PR for GNU objdump's retirement open in PR 229046. https://bugs.freebsd.org/229046. There are two ways we can proceed with its retirement: 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. Related links for this path: Ports exp-run: https://bugs.freebsd.org/212319 Patch review: https://reviews.freebsd.org/D7338 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. Related links for this path: Patch review: https://reviews.freebsd.org/D18307 I am interested in feedback on the preferred approach. Installing llvm's objdump has the advantage that for most use cases everything will "just work", but may also introduce subtle failures.