[Bug libdw/28574] New: Reduce the size of struct line_state and Dwarf_Line_s

mark at klomp dot org sourceware-bugzilla@sourceware.org
Wed Nov 10 09:27:15 GMT 2021


            Bug ID: 28574
           Summary: Reduce the size of struct line_state and Dwarf_Line_s
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libdw
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

struct line_state and Dwarf_Line_s contain various fields which are often never
used. op_index, isa, discriminator and for the linemap extensions context and
functionname. On the other hand it doesn't contain some of the DWARF5 additions
like the md5sum.

For DWARF5 we should be able to just have the fields that are actually defined.
For DWARF4 and below we should at least try to get away with just the most used
fields and only use extended records for the lesser (never) used fields.

See also the discussion here:

Note that there is a DWARF6 proposal to have "optional" records in file name

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list