elfcmp: Get, check and shdrstrndx for section names.
authorMark Wielaard <mark@klomp.org>
Thu, 13 Sep 2018 11:52:46 +0000 (13:52 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 13 Sep 2018 12:30:30 +0000 (14:30 +0200)
commitbe4ea50a689dcfdb46079f8f5ce616107a77cdc4
treec23a5a055da87f7024d26d7755f9ba6a69aceaae
parent68e8b84743bdb389776e3aa2bae27aba7f435fdb
elfcmp: Get, check and shdrstrndx for section names.

elfcmp would use the Ehdr e_shstrndx field to find the shdr string
index table. Use elf_getshdrstrndx instead to be able to handle ELF
files with more than SHN_LORESERVE sections.

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