From owner-freebsd-toolchain@FreeBSD.ORG Fri Nov 28 02:28:19 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4FBF41B; Fri, 28 Nov 2014 02:28:19 +0000 (UTC) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8E6B7DFA; Fri, 28 Nov 2014 02:28:19 +0000 (UTC) Received: by mail-ig0-f170.google.com with SMTP id r2so10850650igi.1 for ; Thu, 27 Nov 2014 18:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=t7G/P41xz3N2Z6YYDTOiXS0OLm21volwRzUnpxq2Yvc=; b=h3n6xAVTJgpV05DOXmCbuBKP8gPLAJo9LCAF49K5kE4P/5PggbEO6TNwRhIX89CQW0 kiegr6nCk4NOFEXTWbv5Jjmt5khFpqFD5UJdZaZb/GiyHI/E5jl5nEv81JmticCsP+qA Wtpsd1heQSBzvpEICpSIceIZ54p6eANOvhJ6rM6rnkyaW6/H2K9BQh4g1xNOv89KVPBH qSnhU/pBw3F/UoRCbfSRh0r373sZUXxkf/6z0hh5w131zYf9sLhdRVgtAcL18lUFmNhc lnJNNSu1jPsPhnIdMFJMPAZfbJt6KeSVk1AoXbAQyajoGFzs2uGxNYtzXkW+Stl057xb dDHg== X-Received: by 10.50.134.225 with SMTP id pn1mr30342800igb.33.1417141698804; Thu, 27 Nov 2014 18:28:18 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.29.141 with HTTP; Thu, 27 Nov 2014 18:27:58 -0800 (PST) In-Reply-To: <20141124000947.GK68776@ivaldir.etoilebsd.net> References: <20141124000947.GK68776@ivaldir.etoilebsd.net> From: Ed Maste Date: Thu, 27 Nov 2014 21:27:58 -0500 X-Google-Sender-Auth: mLYMZqvxD9aXzlB0A81tgR9MKjs Message-ID: Subject: Re: Using more elftoolchain tools? To: Baptiste Daroussin Content-Type: text/plain; charset=UTF-8 Cc: toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 02:28:19 -0000 On 23 November 2014 at 19:09, Baptiste Daroussin wrote: > Hi all, > > From what I can see on the elftoolchain website, they do have working > replacement for: > - size(1) > - addr2line(1) > - strings(1) > - nm(1) > - strip(1) > > Does anyone knows if there are known issues with those? or if they are viable > replacement for the version we have in base? > > I'm planning to spend a bit of time on those (I think emaste@ is already working > on strip(1) so I'll skip that one). I'll save you the effort, since it was easy to add the rest after getting the first one incorporated into our build. The set above are in code review at https://reviews.freebsd.org/D1224. It adds a WITH_ELFTOOLCHAIN_TOOLS knob to enable building them instead of binutils. I have a -current VM built with that enabled and it passes basic sanity tests. I know that at elftoolchain is missing some required functionality for MIPS at least, but I don't think it'll be hard to add. What I'd like to do is commit the change in D1224 after a little more refinement, then call for broader testing and a ports exp run. We can enable WITH_ELFTOOLCHAIN_TOOLS by default on a per-architecture basis until it works properly everywhere. -Ed