libebl: Use elf_getshdrstrndx in ebl_section_strip_p.
authorMark Wielaard <mark@klomp.org>
Wed, 1 Aug 2018 14:51:03 +0000 (16:51 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 13 Sep 2018 12:30:30 +0000 (14:30 +0200)
commit68e8b84743bdb389776e3aa2bae27aba7f435fdb
tree57b5c8ff6a38c61e0c7d63dc4b0bc234ef011ebb
parent19756e7fb614831f4a5f5ff5b996675fae638782
libebl: Use elf_getshdrstrndx in ebl_section_strip_p.

The ebl_section_strip_p function used the Ehdr e_shstrndx field
to get at the name of the (debug) sections. This is not correct
if there are more than SHN_LORESERVE sections. Use elf_getshdrstrndx
to get at the shstrtab section. And drop the Ehdr argument that isn't
necessary anymore.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libebl/ChangeLog
libebl/eblsectionstripp.c
libebl/libebl.h
src/ChangeLog
src/elfcmp.c
src/strip.c