From owner-freebsd-toolchain@FreeBSD.ORG Tue Sep 30 11:35:49 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0D0A9267; Tue, 30 Sep 2014 11:35:49 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (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 57C0AB96; Tue, 30 Sep 2014 11:35:48 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id q1so8364207lam.18 for ; Tue, 30 Sep 2014 04:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=x4TLYILdZDTf3eXdV10v0WSDAq/LpQdPKZp2nCFRrDM=; b=KHYHN/AbVZduM0xjHDvyWZBtR2cysP5oSDTCBFF01dWkYxQc2TXzvnMnv9V5wunWGy SyJ2A+1q3o0aFBOiywgLHPDU/9IN+UyhC9/n3bMxDFvT/ncMLjx/0I5bhoH+MsG/k6hN 8juwBhLFvjcstwe1fN5GO6kTvHsa/plP+elFSZ5n3F37n13lvZXJZ6a0AmLM67G/WTMY f4ULYBlZX47jZEaMHsC3ENJuH4HzVY8bCkYxtZ6KTGOAdhUv6NSnLgGFdd8V7g27U3sX fFkNZEbmuVm09lbYakjE7Gl9GicRXrNDbbKEi+kpiVJnGT+ZNtXkBU6YBlnP7YjR78mU 6aeQ== X-Received: by 10.152.87.10 with SMTP id t10mr23577909laz.22.1412076946302; Tue, 30 Sep 2014 04:35:46 -0700 (PDT) Received: from localhost (s83-179-26-16.cust.tele2.se. [83.179.26.16]) by mx.google.com with ESMTPSA id d7sm5927724lad.4.2014.09.30.04.35.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 30 Sep 2014 04:35:45 -0700 (PDT) Sender: Kai Wang Received: from localhost.localdomain ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1XYvib-0001yT-3E; Tue, 30 Sep 2014 13:35:45 +0200 Received: (from kaiw@localhost) by localhost.my.domain (8.14.5/8.14.5/Submit) id s8UBZid7007592; Tue, 30 Sep 2014 13:35:44 +0200 (CEST) (envelope-from kaiw@FreeBSD.org) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiw@FreeBSD.org using -f Date: Tue, 30 Sep 2014 13:35:44 +0200 From: Kai Wang To: Will Andrews Subject: Re: elftoolchain update? Message-ID: <20140930113544.GA7285@soulhacker> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jkoshy@FreeBSD.org, freebsd-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: Tue, 30 Sep 2014 11:35:49 -0000 Hello Will, My apologies for the delayed reply. I've totally missed these few emails. I can investigate the C++ object files issue and make fixes for them ASAP. Regarding header, it was used for elftoolchain to build on various OS independently. When merging elftoolchain back to FreeBSD, I found it's very hard to use the header because of the conflicts. So I decided to continue using the existing system ELF headers. You approach of merging the missing defines from to the elfXX.h headers looks good to me. Thanks, Kai On Fri, Sep 26, 2014 at 11:32:20AM -0600, Will Andrews wrote: > Hi, > > I've created a git-svn clone of the current elftoolchain, and applied > some fixes in a branch: > https://github.com/wca/elftoolchain/tree/freebsd > > Any objections if I update the copy in head using this branch? I've > heard nothing from either Kai or Joseph. > > I'm not done testing yet -- it looks like there are some more bugfixes > needed to get ctfconvert to at least run against C++ object files > without bailing. Just wanted to know if there are any specific > concerns that people might have. > > A related review involves an update for the ELF headers: > https://reviews.freebsd.org/D844 > > I haven't finished testing this either (need to do an universe build > to check for conflicts), but my goal here is to achieve header parity > with from elftoolchain, which is largely duplicate. > The elftoolchain header exports many more symbols that are used by its > userland programs. This would include arch-specific interpretations > of some ELF structures. I believe it's appropriate to export these on > a global basis, given that userland programs can legitimately be run > on object files built for architectures other than the system they're > running on. > > Thanks! > --Will. > > On Wed, Sep 17, 2014 at 5:01 PM, Will Andrews wrote: > > Hi, > > > > I see there have been a lot of updates & fixes to elftoolchain since > > the last import into FreeBSD/head nearly 8 months ago. Are there any > > plans to update the import? > > > > I'm asking because it appears that ctfconvert currently crashes > > (specifically, due to a bug in dwarf_attrval_unsigned()), if you try > > to use it on C++ object files. > > > > This is easily demonstrated by applying this patch to FreeBSD/head and > > building sbin/devd with WITH_CTF=1: > > http://people.freebsd.org/~will/add-ctfconvert-to-cpp-object-files.diff > > > > Justin Gibbs (cc'd) posted about this issue in February, and it's > > still a problem: > > http://lists.freebsd.org/pipermail/freebsd-toolchain/2014-February/001121.html > > > > Thanks, > > --Will.