Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2699793ybd; Thu, 27 Jun 2019 17:53:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7rRQyinY2huhrB38An8nFvTPDALwqTUpa0bDDvY5/nvko1j3W+EcgsIOXnNutqc7pBian X-Received: by 2002:a17:902:694a:: with SMTP id k10mr7978595plt.255.1561683194954; Thu, 27 Jun 2019 17:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561683194; cv=none; d=google.com; s=arc-20160816; b=VjHUz+040S25Ht+tP2dsO+f0RpVDo/w77i2GqQge7lB3vPLhLY0H+EVUico6W+V1cW fGYM6Gob347hB9E0DNuQHQ2k/tTIjthCbAXa0iSQOlh4l9BCsvEdS41JiDRZQNhjlc9F H0U6KN62tQkqkC6ZHdDFQOxvqEpjRTOGnmd/NThlp/PSk1h9HO2BEgocJMwLmoutRBi+ Qjwkq0kXaLpBY6pO095gsFKHjVI6uOf61nX4NIBC+dv6I4BrwyUY+awm9Pub8xstDzDX oV+yNqmd4PSqRnglhwfc6QZhjVjpgN9i01HAey922PJWqzFRd3LEFQ8yHXN7hQA9KY/7 NoMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=Pq41u0f/gOF6n9FN1LiqWASJozK08VcYm5UQx3JBapI=; b=hQEV8UNfv3RrVWWdhO+od0dBgM5i3R7yLncYG/6QTx+UURniGY7jNzzCDbTsbbRN50 Sy4lSTOItqPO9DLZ/c/oMM3jrZ/oISgILX0IY/fveFX4oaYUe6NJTlQoU736JVHIbwEv 7adMjpSIAE/BSMzhCfTNYun4FXMIwiFcfI3qQeUzWzY5y247G6AlR80vrQKGGhtK9kO8 /4ElY/aYw6gn8OuKFSoY5BRQv8HXJ7VzqN0rvHupfi1YJJdhK6TMsc3C2G0iG4ziX3EZ a7nwQ0kRm2x5bCpupPK6IN5vTfvAbQErH3Xtj1XLlrWrEDO546HZ0MeYVoXgmdyNlOQS VssA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mforney-org.20150623.gappssmtp.com header.s=20150623 header.b=z4hR54MR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si498294plo.98.2019.06.27.17.52.58; Thu, 27 Jun 2019 17:53:14 -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; dkim=pass header.i=@mforney-org.20150623.gappssmtp.com header.s=20150623 header.b=z4hR54MR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbfF1Awz (ORCPT + 99 others); Thu, 27 Jun 2019 20:52:55 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:34497 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbfF1Awy (ORCPT ); Thu, 27 Jun 2019 20:52:54 -0400 Received: by mail-yw1-f65.google.com with SMTP id q128so2495126ywc.1 for ; Thu, 27 Jun 2019 17:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Pq41u0f/gOF6n9FN1LiqWASJozK08VcYm5UQx3JBapI=; b=z4hR54MRSiGtF8t4q9dah4h8cj2pJMI+wqYMO4G3f4n1Cm/ctRwuP0nef67Vx3cWZU A8z7sP6FixGi8TwWFYHBGf2/UIdf3i88iUAqPoroonUVqZcJ1O3/zWPlN1XTylu/sZTU noAfRUoWSNCex8O2XC/q00D0vJSKJK69xuJ8d+DKzDEkxZfv7t70/g1Hh4h+5tMF4/lS mnCsoZIrxO/0CKJg8250qhaUkvpGuoOiylbK+80rf3V91GzDEbnwVTGJpTmuFfjLUEqY eQMzxA/DdzHKv+hIg0qcqGDOk3xsEEVK674KQgsTzeUEJ1ogPb4BmcHJoOIHu9THfuYf h37A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Pq41u0f/gOF6n9FN1LiqWASJozK08VcYm5UQx3JBapI=; b=TbqFYQGcACoj9PnHXxOOIt0sQOvYs1kaDMzsNdP/EcEbI2EF7Y8071D0bnMod8RKfA wJIIHkQDoc4sAQEcW1Wir7bd9p/XCECTtvwPxcrozwCgM7SM0/s338kxc2rTCeO3ieCV gZ8tNc9LJOuOrXmiUAfxGjncdqHXlhJDVgLgdDY22oyxPwQlwWJse5P/3EOvrBO9u89B urpoMzfbBTrVawsvqxEirI8oKL5x87chRTsl1+yMZhC7VrgPgSWkf+YKXo6cC8MypHE7 1P6vV8rXXDTP9yYvmAh8nlzTpvNHxgHPnETVwjU9YL4pNcDJxPPJ5SSokXQjr/JC98LZ zKUw== X-Gm-Message-State: APjAAAXxJKLHk5n4Xi8BGnDhoR9j9mc+e5ht9SUC7nphRj1wMX544zdS fmQWsR2y7XT1fewVnEpeP+oTO3ezuHy55ot7cx+Jww== X-Received: by 2002:a0d:fd42:: with SMTP id n63mr4573538ywf.329.1561683173719; Thu, 27 Jun 2019 17:52:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a81:e205:0:0:0:0:0 with HTTP; Thu, 27 Jun 2019 17:52:53 -0700 (PDT) X-Originating-IP: [2601:647:5180:35d7::cf52] In-Reply-To: <20190628002208.v6brs6b6hf7b6sth@treble> References: <20190616231500.8572-1-mforney@mforney.org> <20190628002208.v6brs6b6hf7b6sth@treble> From: Michael Forney Date: Thu, 27 Jun 2019 17:52:53 -0700 Message-ID: Subject: Re: [PATCH 1/2] objtool: Rename elf_open to prevent conflict with libelf from elftoolchain To: Josh Poimboeuf Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, elftoolchain-developers@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. [0] https://sourceforge.net/p/elftoolchain/tickets/571/