summaryrefslogtreecommitdiff
path: root/tools/objtool
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-07-11 00:17:35 +0300
committerThomas Gleixner <tglx@linutronix.de>2019-07-18 01:50:14 +0300
commit3c3ea5031761fdd144b461d23a077c3a0cf427fa (patch)
treee80851283f0ef31907aad00b3e270d2e49db632a /tools/objtool
parent57ab5f740202babe93c8796013c5cfdfd6d08d7d (diff)
downloadlinux-3c3ea5031761fdd144b461d23a077c3a0cf427fa.tar.xz
objtool: Use Elf_Scn typedef instead of assuming struct name
The libelf implementation might use a different struct name, and the Elf_Scn typedef is already used throughout the rest of objtool. Signed-off-by: Michael Forney <mforney@mforney.org> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/d270e1be2835fc2a10acf67535ff2ebd2145bf43.1562793448.git.jpoimboe@redhat.com
Diffstat (limited to 'tools/objtool')
-rw-r--r--tools/objtool/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c
index e99e1be19ad9..76e4f7ceab82 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));