objtool: Use Elf_Scn typedef instead of assuming struct name
authorMichael Forney <mforney@mforney.org>
Wed, 10 Jul 2019 21:17:35 +0000 (16:17 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 17 Jul 2019 22:50:14 +0000 (00:50 +0200)
commit3c3ea5031761fdd144b461d23a077c3a0cf427fa
treee80851283f0ef31907aad00b3e270d2e49db632a
parent57ab5f740202babe93c8796013c5cfdfd6d08d7d
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
tools/objtool/elf.c