]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Handle .debug_info first if any other debug section needs it.
authorMark Wielaard <mark@klomp.org>
Sat, 28 Apr 2018 21:02:41 +0000 (23:02 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 11 May 2018 15:38:03 +0000 (17:38 +0200)
commit314e9d7d4e102d00f79807ddb15ab15aaad30708
tree1f78576b62cd93ca4a14325390a815cc1400ee64
parentaf1438086468f936dfb041daed59a3367fe24a07
readelf: Handle .debug_info first if any other debug section needs it.

Some debug sections need information from the CU DIEs to properly
parse the data. Normally the .debug_info section is one of the first.
But some DWARF producers reorder the sections and put it after some
other debug sections. Make sure we first handle .debug_info if it
is needed by any other debug section.

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