readelf: It is not an error if there are no line number statements
authorMark Wielaard <mark@klomp.org>
Wed, 26 Aug 2020 12:27:46 +0000 (14:27 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 26 Aug 2020 12:27:46 +0000 (14:27 +0200)
commitdf91c6af98ac09acce5a906afef3e3fe21b24734
tree1c29e9d116a2ed5765a26017744b8baf49c40911
parent0c8cac246d18c7f9d161e68c951168750c72e26c
readelf: It is not an error if there are no line number statements

It can happen that there are no line number statements at the end of
a debug line section. So don't check that there are any more bytes
after the last file entry. And print "No line number statements."

libdw already got this corner case correct.

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