March 04, 2022
https://issues.dlang.org/show_bug.cgi?id=22848

          Issue ID: 22848
           Summary: DWARF .debug_line section should be generated to
                    conform with DW_AT_stmt_list bounds
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: contact@lsferreira.net

The current DWARF generator doesn't generate .debug_line section if there is no entries in the line table, although, to conform with DWARF standard and, in order to readers read it correctly, this section need to be present, even though, empty.

--