Commit 3c3ea503 authored by Michael Forney's avatar Michael Forney Committed by Thomas Gleixner
Browse files

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: default avatarMichael Forney <mforney@mforney.org>
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/d270e1be2835fc2a10acf67535ff2ebd2145bf43.1562793448.git.jpoimboe@redhat.com
parent 57ab5f74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));