FW: [PATCH] readelf: attach location views to DW_LLE_startx_endx/startx_length loclists

Jan Beulich jbeulich@suse.com
Fri Jul 10 13:22:23 GMT 2026


On 09.07.2026 10:40, Kamil Bucki (Nokia) via Binutils wrote:
> display_loclists_list only read the GNU location-view pair
> (DW_AT_GNU_locviews) for DW_LLE_offset_pair, DW_LLE_start_end and
> DW_LLE_start_length entries.  For the indexed bounded forms
> DW_LLE_startx_endx and DW_LLE_startx_length the range was decoded but
> the matching view pair was left unread, so vstart lagged behind next and
> the adjacency heuristic emitted a spurious
> 
>   Warning: Hole and overlap detection requires adjacent view lists and loclists.
> 
> Add the two indexed bounded forms to the guard so their view pair is
> consumed and printed like the other bounded entries.  This is not target
> specific; it reproduces on any DWARF 5 object whose producer emits
> startx_* loclist entries together with location views.
> 
> 	PR binutils/34366
> 	* dwarf.c (display_loclists_list): Also read and print the
> 	location view pair for DW_LLE_startx_endx and
> 	DW_LLE_startx_length entries.
> 
> Signed-off-by: Kamil Bucki <kamil.bucki@nokia.com>

While this looks entirely plausible, I wanted to check it against some kind
of spec. Thing is - I don't appear to be able to locate such a spec for
DW_AT_GNU_locviews (which is what I think would be relevant here). Can you
perhaps provide a pointer?

Jan


More information about the Binutils mailing list