Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1889748ybi; Sun, 16 Jun 2019 16:15:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw66bsCcaGG7jXk/jGVbQIGZDFawqUHveBiAkO3kk7EFzirwdQYOsYBqDUhlagcyr6Bzlql X-Received: by 2002:aa7:8f24:: with SMTP id y4mr67273681pfr.36.1560726959520; Sun, 16 Jun 2019 16:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560726959; cv=none; d=google.com; s=arc-20160816; b=r0z0xis4s6d7UzrouyNx2RsVagU00JyzNe13eMWk1kZ9XeP5Dkvvn+EqcQV+DFebEL J2miP5GOM6E1hyTrcIp3YoMP7B8xOsveF09VDXMiw/A8x+ZrmO7hnyxeevTRcOrKBe8D s/PbHQQCy7rIw7SFa61uiiq+/7CzfiLKWMbEv9ZC1aDfttR9rZIOoSljbXxfWCIjh6x/ EhPXl84wckoixSuybVDs4sn2OkEIRFRdO1uGHe5w0meNl7galSGweOA65AYIiWpxPatP 8f/DY0ssZb63OIfJsYIN6j6O1VPElyuBFgFRgpc6KA0HYvcghrAx8H+kaEZqu6e0O0wJ mW6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O6s43FoFGk1a0lzCjrcjOypwF7oZWJqI5fW9U/cGkrQ=; b=bD9cUz9qQGC7sj52khSvgfhEfX4qMXBe+ygDuxjfNDvIsKPaJaPwQ9o1JgtbriVbJI 6iT7C18xkwuM/2vvijmL0C3vGowoeCsr00HKp7Ayf7d/jorLC801t+mNsl5VuvIsslk3 lQwhdKoA/gY5uRUNDw/FA98kwzpQZOKyOUmlh6QWaY76wcZpRjJ3VZ79ViqgVVKgjEXG x4Qh8Qat4fGfF9cl8n0riWN+hkshqLJVzlZgGbY52Az7kkWqDlrQm2SGBdyUVcN0rPjZ 0GRtaS6jD8RB+vJrWDbewqmBfykjAlraKrnzwR0hKbcWiVREX7aMhoGvjTHyB+fNnu50 oHXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mforney-org.20150623.gappssmtp.com header.s=20150623 header.b=gh6LmzXL; 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 v11si8261037plp.304.2019.06.16.16.15.07; Sun, 16 Jun 2019 16:15:59 -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=gh6LmzXL; 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 S1727415AbfFPXPD (ORCPT + 99 others); Sun, 16 Jun 2019 19:15:03 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45155 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727226AbfFPXPD (ORCPT ); Sun, 16 Jun 2019 19:15:03 -0400 Received: by mail-pf1-f195.google.com with SMTP id r1so4589979pfq.12 for ; Sun, 16 Jun 2019 16:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O6s43FoFGk1a0lzCjrcjOypwF7oZWJqI5fW9U/cGkrQ=; b=gh6LmzXLeXfnxxQNn15D7PEEGjZHXVOAh6pjmCTfac7zk6xjN7oYV5g6z2KUz2AG8a 0sqjwzkrH/Lu/SRrpKVqlK30hNtORG52paEMlxfgKvGRDoIy6SSRvP/Hh7Po7moowL9j /xwphgXKkcBw6jcKOukF03Hp4YO+w07s7b9HOJkEg9Oo/GX84WajneW2sNGyQ2IBfp6x MiCQyHy/3TAS7XaxpSz+lbT5LBg5I0q05RB2FlUrrjXdpEUSNXbgwx/64DuteKGeZnIl p649thLLjnB3U0Qn2CooH70GPYG63yKd6xrIrXyn66PsdP8JDeuLkzZMg/Xg7oi9wKco QCUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O6s43FoFGk1a0lzCjrcjOypwF7oZWJqI5fW9U/cGkrQ=; b=b0ye1tIFu4Q1xfMtYk9SiIJw/yXs2IM/GZHPkPQgpUFEgDldWIAhe0S2ymIi0z66kS xQ+kNQ4jhzV5hmeEv4QQzY4RRCVUVtBw+yC42fwBJByQrg9SMshhJqF7jUXQB3dZ65oU FseYdzKJMgMMeAa4w3TSKi3xGCCfDaCjk2dpXj1F0TPT0KyWijTtTrgHBpum+iEvogCL rWar2W6IxvHsMf1pryf+aqV8jKB2az5sBWxnYwrvk9k2Y2YwQs4mJDhwmhvMB3BpwX9I FVI74WlUkwSjjcZ0GWT9pSixJQoBDJp00j5OBDKOkvXKVb3pJ5Ot1NmbTfnXQ1VVhH+9 y4gw== X-Gm-Message-State: APjAAAVBrJ02OayTm2EmoHynXr9xvMU6/KU955A8Xr9tArrn9AC+7FSy MCBWc7msoXjpuVfCTVUSfHRteiIAzmtOuEeJ X-Received: by 2002:a62:1456:: with SMTP id 83mr59232399pfu.228.1560726902615; Sun, 16 Jun 2019 16:15:02 -0700 (PDT) Received: from localhost ([2601:647:5180:35d7::cf52]) by smtp.gmail.com with ESMTPSA id a21sm7682381pjh.10.2019.06.16.16.15.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 16:15:02 -0700 (PDT) From: Michael Forney To: Josh Poimboeuf , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, elftoolchain-developers@lists.sourceforge.net Subject: [PATCH 2/2] objtool: Use Elf_Scn typedef instead of assuming tag name Date: Sun, 16 Jun 2019 16:15:00 -0700 Message-Id: <20190616231500.8572-2-mforney@mforney.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190616231500.8572-1-mforney@mforney.org> References: <20190616231500.8572-1-mforney@mforney.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The libelf implementation might use a different tag name, and the Elf_Scn typedef is already used throughout the rest of objtool. Signed-off-by: Michael Forney --- tools/objtool/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index 4116f564a0b0..a4258d80d4ce 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -463,7 +463,7 @@ struct section *elf_create_section(struct elf *elf, const char *name, { struct section *sec, *shstrtab; size_t size = entsize * nr; - struct Elf_Scn *s; + Elf_Scn *s; Elf_Data *data; sec = malloc(sizeof(*sec)); -- 2.20.1