Issue 240618.2: DW_AT_rnglists_base missing
| Author: | David Anderson |
|---|---|
| Champion: | |
| Date submitted: | 2024-06-18 |
| Date revised: | 2024-09-24 |
| Date closed: | 2025-03-13 |
| Type: | Clarification |
| Status: | Withdrawn |
| DWARF version: | 6 |
This is the 2024-09-24 version of the proposal. [ Compare with previous version ] [ Return to the latest version ]
BACKGROUND
References are to DWARF5 unless otherwise indicated.
If a split-full CU uses DW_FORM_rnglistx,
is a DW_AT_rnglists_base required?
Apparently not, since in cases I have seen in object files
with a single rnglist in .debug_rnglists.dwo
there is no DW_AT_rnglists_base.
The operative assumption seems to be that consumers will simply
assume zero as the (missing) DW_AT_rnglists_base.
Seen in llvm and gcc.
The intent of this proposal is to get clarity.
An alternative version could state:
If a Split Full Compilation Unit refers to
.debug_rnglists.dwowithDW_FORM_rnglistxthe CU DIE must have aDW_AT_rnglists_baseattribute.
PROPOSAL
At the end Sec F.1 Overview just before Table F.1:
If a Split Full Compilation Unit refers to
.debug_rnglists.dwowithDW_FORM_rnglistxand the correctDW_AT_rnglists_basewould be zero, theDW_AT_rnglists_basemay be omitted.