Bug 28578 - DW_AT_languge hint for partial units
Summary: DW_AT_languge hint for partial units
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-10 13:39 UTC by Mark Wielaard
Modified: 2021-11-10 13:39 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-10 13:39:41 UTC
Parial units (CUs) might not have DW_AT_language set. This makes some functions, like dwarf_aggregate_size, not work, since the language of the CU is used for some defaults, like the default array lower bound (zero or one?).

Maybe we can add some kind of "hint" for partial units. So the first time they get "imported" the language is set from the importing unit?

See also this thread:
https://sourceware.org/pipermail/elfutils-devel/2021q3/004221.html