]> git.ipfire.org Git - thirdparty/elfutils.git/commit
elflint: Use shnum and shstrndx instead of ehdr field directly.
authorMark Wielaard <mark@klomp.org>
Wed, 12 Sep 2018 21:38:47 +0000 (23:38 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 13 Sep 2018 22:18:36 +0000 (00:18 +0200)
commit583d106753e805e75a6cbfeab79aa2965e042f69
tree7afb2f5c671bdb4f1167537d2799d0d1661ab3dc
parent34534cc1740b198b8999dcf97222940a130905ce
elflint: Use shnum and shstrndx instead of ehdr field directly.

We already got the right shnum and shstrndx. But were still using
e_shnum in one check for ELFCLASS64 (it was correct for ELFCLASS32).
And when getting section names in check_symtab we still used
e_shstrndx in two places.

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