binutils Newspaper
JULY 29, 2026
fw Proposed

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

A reviewer requests specification details for DW_AT_GNU_locviews to validate a readelf patch.

Jan Beulich requested a specification reference for DW_AT_GNU_locviews after reviewing a patch by Kamil Bucki. The patch aims to fix a warning in readelf concerning location lists in DWARF 5 objects by correctly processing indexed bounded forms. Beulich seeks a spec to confirm the patch’s correctness.

In the Thread 1 participant
  1. Jan Beulich reviewer

    Requests a specification pointer for DW_AT_GNU_locviews to validate a patch that addresses DWARF 5 location list processing.

    “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?”

In Details

This discussion centers on a patch to readelf that addresses a warning related to DWARF 5 location lists, specifically for the DW_LLE_startx_endx and DW_LLE_startx_length forms. The patch correctly decodes the location view pairs associated with these entries, which were previously unread, preventing a spurious 'Hole and overlap detection requires adjacent view lists and loclists' warning. The reviewer is seeking definitive DWARF standard documentation for DW_AT_GNU_locviews to cross-reference the patch's logic.

For Context
readelf
A utility from the GNU Binutils package that displays information about ELF (Executable and Linkable Format) files, including debugging information.
location lists
A feature in DWARF debugging information that specifies the memory locations of variables or expressions at different points in the program's execution.
DW_AT_GNU_locviews
A DWARF attribute, specific to GNU extensions, that associates location lists with particular views or contexts. This is relevant for advanced debugging scenarios.
DW_LLE_startx_endx
A DWARF Location List Entry (LLE) format that defines a range by a starting offset plus a length, used for indexed location lists.
DW_LLE_startx_length
Similar to DW_LLE_startx_endx, another DWARF Location List Entry format for indexed location lists, specifying a start and length.
DWARF 5
The fifth version of the DWARF debugging data format standard. It introduced new features and clarifications, including enhanced location list handling.
PR binutils/34366
A reference to a specific bug report (Problem Report) filed against the Binutils project, tracking an issue or feature request.
Filed Under: binutilsreadelfdebuggingDWARFpatch review