Re: [PATCH] readelf handle .debug_addr section.

2018-05-30 Thread Mark Wielaard
On Mon, 2018-05-28 at 16:32 +0200, Mark Wielaard wrote: > Add debug-dump=addr which will show the .debug_addr section tables. > The only tricky bit is the fact that GNU DebugFission, a DWARF4 > extension, didn't produce unit table headers. So if we see a mixed > DWARF4/5 .debug_addr table we have t

[PATCH] readelf handle .debug_addr section.

2018-05-28 Thread Mark Wielaard
Add debug-dump=addr which will show the .debug_addr section tables. The only tricky bit is the fact that GNU DebugFission, a DWARF4 extension, didn't produce unit table headers. So if we see a mixed DWARF4/5 .debug_addr table we have to reconstruct the table length from the CU DIE DW_AT_[GNU_]_addr