How do bytes originating from code in headers get allocated when using -d compileunit?
Open
question
- Dominant language
- C++
- Stars
- 5.5k
- Forks
- 378
- Avg merge
- 23h 54m
- Merged PRs (30d)
- 6
Description
This is a question, not a bug or feature request. Please let me know if that is not appropriate for a github issue.
When using `-d compileunit` each byte is assigned back to the originating compile unit, but how does it work for symbols that would appear in many `.o` files, with the linker selecting one? For example template code will generally appear in every compile unit using that template, but only one will appear in the final binary as the link selects one copy "arbitrarily". How does bloaty report it? Perhaps to the compile unit the linker selected the copy from?
Contributor guide
Assessment
This issue has not been assessed yet.