readelf: Use shstrndx to lookup section names.
authorMark Wielaard <mark@klomp.org>
Wed, 24 Oct 2018 13:59:32 +0000 (15:59 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 24 Oct 2018 13:59:32 +0000 (15:59 +0200)
commit35197ea4c43ef2101b06e03ef6b3c6778bd986bc
tree22f8646ee47da087082ac7aa45d5e2029e486397
parent9a74c190a2b357c6318e6222ff08c5bcee2f9291
readelf: Use shstrndx to lookup section names.

The function section_name would use the Ehdr e_shstrndx field to find the
index of the section index string table directly. But it should use
elf_getshdrstrndx. Adjust all callers.

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