On Sat, Mar 09, 2019 at 06:20:47AM -0300, Alexandre Oliva wrote:
> > case etc.  We need to look at what we emit with
> > -gdwarf-{2,3,4,5} {,-gsplit-dwarf}.
> 
> For v<5, we use DW_FORM_sec_offset for both DW_AT_location and
> DW_AT_GNU_locviews, with absolute addresses for -gno-split-dwarf, and
> with .Ldebug_loc0-based offsets for -gsplit-dwarf.
> 
> We use exactly the same logic for DW_AT_GNU_locviews in v5, even though
> the logic for DW_AT_location changes for -gsplit-dwarf.  Given the
> precedent for changing the DW_FORM_sec_offset's base address in split
> compile units, I hope we can stick to it, but if you see some reason not
> to do that, even for an extension, we should probably go with the
> index-based indirection and DW_FORM_loclistx.

If so, then all we need is likely my patch + some documentation change,
though not sure where exactly it should be documented, some Wiki we refer
in include/dwarf2.def, or what?

        Jakub

Reply via email to