google / google/bloaty

How do bytes originating from code in headers get allocated when using -d compileunit?

Open
#303 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.