Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2745223ybd; Thu, 27 Jun 2019 18:54:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1DZ1NyvmaH1Q5SNU+bQbv7vPqYRsge0lHw2j/1gCVePeRLdivpvuAIzJOA6n3RzhcIZnR X-Received: by 2002:a17:902:31c3:: with SMTP id x61mr8168301plb.331.1561686893146; Thu, 27 Jun 2019 18:54:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561686893; cv=none; d=google.com; s=arc-20160816; b=YtP1j2twy4yN8JNA2FJ46a847T0APAJNzF9MV0OIb8pgyB96blkU6aEx3fncQxhZfG Nudds9bDhtK3+C81LnVDeadGkQw+wEglWHRO3gIAv/tYxWnLUCLC0+wpsTqZLOSQ+x2e O/vQDUo2kLrE0+grwngRVbZW/l8TyZ+SZF2lA4s9B5g0itsYPkiUv0CuZP4mZki9d3zM dnl433xlGOdtojz1BibIHQ8FfS6oa0ImIuq4/mapWIR+NL6cPhViNxAg2HWzlqYyze7a iRhxLNnwKPUqIBNQ7UaEvwWACA5MNBrr0cQIJMtrFGAtTkM1Zu4AlBHRsNI4YFPfKMgD TlZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GI/NXkzboY3hIiURBjaBPK8miFvzQPmDAVEpOVwxEtc=; b=YiFR5/dIaUGCwgXmnnQZITDmtnFfC5iozEJJDvJBC2V2Y/Sn17ZjWpQTGFmwSe3p15 5hGKjiYFLO6S20WNzbMPHkrvp70+p/xVcmlvgeZ53f/JQeeKAj/Orb0/yaTTL7ViTruy o5hfJISYUopch1YQRp0XO8OYE03TWKn1vq4Ig5LWdAOHfKga/Y6yVZSl+gg2UUIHx7RS amFwC2wycr/UmqTCpUh97LLonLAXJqGIJdslNHPn8sCB7xLX7+ABDZ6fN0VS/h6kLNY5 MvIS9GEvUKVRFXjfYnNoOPMBaf9TjveCBCBKzFhUC4vs9y2lZbwtmNLKaKF8xnO6f9ji DLlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si650699plg.353.2019.06.27.18.54.37; Thu, 27 Jun 2019 18:54:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbfF1Bxb (ORCPT + 99 others); Thu, 27 Jun 2019 21:53:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfF1Bxa (ORCPT ); Thu, 27 Jun 2019 21:53:30 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5210886668; Fri, 28 Jun 2019 01:53:30 +0000 (UTC) Received: from treble (ovpn-126-66.rdu2.redhat.com [10.10.126.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 41FAF608A7; Fri, 28 Jun 2019 01:53:29 +0000 (UTC) Date: Thu, 27 Jun 2019 20:53:26 -0500 From: Josh Poimboeuf To: Michael Forney Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, elftoolchain-developers@lists.sourceforge.net Subject: Re: [PATCH 1/2] objtool: Rename elf_open to prevent conflict with libelf from elftoolchain Message-ID: <20190628015326.z64wbie7ex5pfs2v@treble> References: <20190616231500.8572-1-mforney@mforney.org> <20190628002208.v6brs6b6hf7b6sth@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 28 Jun 2019 01:53:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 05:52:53PM -0700, Michael Forney wrote: > On 2019-06-27, Josh Poimboeuf wrote: > > On Sun, Jun 16, 2019 at 04:14:59PM -0700, Michael Forney wrote: > >> Signed-off-by: Michael Forney > >> --- > >> tools/objtool/check.c | 2 +- > >> tools/objtool/elf.c | 2 +- > >> tools/objtool/elf.h | 2 +- > >> 3 files changed, 3 insertions(+), 3 deletions(-) > > > > Sorry for the delay, I was out for a bit and I'm still trying to get > > caught back up on email. > > No worries :) > > > These patches look fine. I'll try to send them on to the -tip tree > > shortly. > > Thanks! > > > Just curious, have you done much testing with the elftoolchain version > > of libelf and objtool? So far objtool has only been successfully used > > with the elfutils version, so I'm just curious how compatible your > > libelf is with the elfutils version. > > I'm not affiliated with elftoolchain, I am just trying it out on my > system as an alternative to elfutils libelf for its clean codebase > that doesn't use many GNU C extensions. > > I've done some basic testing to make sure that the .o files after > being processed with `objtool generate --no-fp --retpoline` match > between elfutils and elftoolchain. I noticed two differences, one of > which was due to a bug in elftoolchain that has since been fixed, and > the other is with the offset of SHT_NOBITS section after rewriting[0], > which I think doesn't matter. Awesome, that gives me a lot more confidence. Thanks! -- Josh