From: Michael Forney <mforney@mforney.org>
To: Josh Poimboeuf <jpoimboe@redhat.com>,
Peter Zijlstra <peterz@infradead.org>
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 [thread overview]
Message-ID: <20190616231500.8572-2-mforney@mforney.org> (raw)
In-Reply-To: <20190616231500.8572-1-mforney@mforney.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 <mforney@mforney.org>
---
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
next prev parent reply other threads:[~2019-06-16 23:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-16 23:14 [PATCH 1/2] objtool: Rename elf_open to prevent conflict with libelf from elftoolchain Michael Forney
2019-06-16 23:15 ` Michael Forney [this message]
2019-06-28 0:22 ` Josh Poimboeuf
2019-06-28 0:52 ` Michael Forney
2019-06-28 1:53 ` Josh Poimboeuf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190616231500.8572-2-mforney@mforney.org \
--to=mforney@mforney.org \
--cc=elftoolchain-developers@lists.sourceforge.net \
--cc=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®