On Tue, Mar 12, 2019 at 04:32:35AM -0300, Alexandre Oliva wrote:
> When location lists are referenced in DW_AT_location attributes by an
> absolute address in DW_FORM_sec_offset, the corresponding
> DW_AT_GNU_locviews attribute can be a DW_FORM_sec_offset with an
> absolute address as well.

Note, for DWARF before v4, there is no DW_FORM_sec_offset and
DW_FORM_data4 or DW_FORM_data8 depending on whether it is 32-bit or 64-bit
DWARF is used instead.
> 
> When generating split (extension to) DWARF up to v4, DW_AT_location is
> represented with an offset from the base address in the beginning of
> the .debug_loc.dwo section, in DW_FORM_sec_offset.  DW_AT_GNU_locviews
> should then be an offset from the same base address, also in
> DW_FORM_sec_offset.

Likewise here.

Otherwise LGTM.

        Jakub

Reply via email to