]> git.ipfire.org Git - thirdparty/elfutils.git/commit
backends: Always use elf_getshdrstrndx in check_special_symbol.
authorMark Wielaard <mark@klomp.org>
Sat, 4 Aug 2018 18:36:09 +0000 (20:36 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 13 Sep 2018 12:30:30 +0000 (14:30 +0200)
commitba2a7f4fa5f453c2b0a729bf519240a8f66a1867
tree6fd2f8cd25f5750e815d7cab22adbd4f5d345e68
parentfb0457f4671e7e0f8331453348005ed6beab275e
backends: Always use elf_getshdrstrndx in check_special_symbol.

The check_special_symbol backend functions used the Ehdr e_shstrndx
field to get at the name of sections. This is not correct if there
are more than SHN_LORESERVE sections. Always use elf_getshdrstrndx
to get the shstrtab section. And drop the Ehdr argument that isn't
necessary anymore.

Signed-off-by: Mark Wielaard <mark@klomp.org>
13 files changed:
backends/ChangeLog
backends/aarch64_symbol.c
backends/alpha_symbol.c
backends/ppc64_symbol.c
backends/ppc_symbol.c
backends/riscv_symbol.c
libebl/ChangeLog
libebl/ebl-hooks.h
libebl/ebl_check_special_symbol.c
libebl/eblopenbackend.c
libebl/libebl.h
src/ChangeLog
src/elflint.c