Bug 28573 - Provide an dwarf_begin interface to open (single-file) DWO or GNU_LTO Dwarf subset
Summary: Provide an dwarf_begin interface to open (single-file) DWO or GNU_LTO Dwarf s...
Status: NEW
Alias: None
Product: elfutils
Classification: Unclassified
Component: libdw (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-09 18:13 UTC by Mark Wielaard
Modified: 2021-11-09 18:13 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2021-11-09 18:13:41 UTC
To fix https://sourceware.org/bugzilla/show_bug.cgi?id=27367 "invalid loclists data with -ffat-lto-objects" dwarf_begin_elf now checks to see which DWARF subset is in the debug ELF file. And it picks the "plain" (.debug sections) over "dwo" (.debug_...dwo sections) over "lto" (.gnu.debuglto_.debug sections) in case multiple are in the same file. We have to pick one because mixing the sections causes chaos.

But the user might want to pick a different set. In particular the user might want to pick "single file" DWO (where the .dwo sections are in the same file as the skeleton plain debug sections).

So we want to have a dwarf_begin variant with a flag to pick such a subset.