Re: [PATCH] readelf: Add .debug_rnglists support.

2018-05-27 Thread Mark Wielaard
On Wed, May 23, 2018 at 04:29:56PM +0200, Mark Wielaard wrote: > Parse the .debug_rnglists section for DWARF5 --debug-dump=ranges. > Add testcase to show both "normal" and "split" DWARF variants are > handled for DWARF4 and DWARF5. Pushed to master.

[PATCH] readelf: Handle .debug_loclists.

2018-05-27 Thread Mark Wielaard
The new DWARF5 .debug_loclists sections are like .debug_rnglists, but plus locations. For Split Dwarf GCC generates the .debug_loclists fully in the split .dwo file. Any references to addresses need to be resolved through the skeleton .debug_addr section. Signed-off-by: Mark Wielaard --- libdw/C

[PATCH] libdwfl: Allow partial relocations also for debug files.

2018-05-27 Thread Mark Wielaard
__libdwfl_relocate is called for get_dwarf and get_elf. We allow not all relocations to be resolved for Elf files, but required all relocations (in the debug sections) to be fully resoled in Dwarf files. This used to mostly work out with .o ET_REL files when the main Elf was gotten before the Dwarf