Bug #1870
closedctfconvert should accept DWARF objects with no type data
0%
Description
ctfconvert believes that every object with DWARF data should have type data.
This is true of GCC, which seems to always include the basic types, but not of Studio. With studio, only types used in an object will exist in the DWARF. It turns out that we have approximately 25 objects which in most builds, don't actually contain any code at all (for varying reasons), so their lack of DWARF type information is not even somewhat incorrect.
Related issues
Updated by Rich Lowe over 10 years ago
https://github.com/richlowe/illumos-gate/compare/tools/ctf-empty-cu contains a first stab at doing this in a way that still provides the useful behaviour of noticing people who have ommitted -g from their command line and things like that.
It is very lightly tested.
It is also insufficient to allow the use of DWARF and studio while building illumos. There are other (compiler) bugs currently preventing this. It is unclear if they can be worked around in the CTF tools.