readelf -wo used to just show the main offset for each entry. Fix it so that the offset is specific to each entry.
submitted by: Bora Ozarslan borako.ozarslan@gmail.com
Differential D18848
readelf(1): Fix readelf -wo to show correct offsets Authored by borako.ozarslan_gmail.com on Jan 15 2019, 10:18 PM.
Details
readelf -wo used to just show the main offset for each entry. Fix it so that the offset is specific to each entry. submitted by: Bora Ozarslan borako.ozarslan@gmail.com
Diff Detail
Event TimelineComment Actions Note, Dwarf_Locdesc is part of the public ABI, so this change would require a library version number bump; see SHLIB_MAJOR in lib/libdwarf/Makefile. Did you consider adding a len field to Dwarf_Loc instead? Consumers can easily sum up the expressions for a given description and add the fixed dwarf_get_address_size(dbg) + 2.
Comment Actions I don't think I considered using Dwarf_Loc instead of Dwarf_Locdesc. It made more sense to show it per Dwarf_Loc like you said so I converted to that. | |||||||||||||||||||||||||||