Notably, a global variable with the metadata should generally not be referenced
by a function function. E.g. -fstack-size-section usage is fine, but
-fsanitize-coverage= used to have a linker GC problem (fixed by D97430).
Details
- Reviewers
eugenis morehouse pcc vitalybuka - Commits
- rGc34b0ab589e5: [LangRef] Clarify !associated
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/docs/LangRef.rst | ||
---|---|---|
6847 | It sounds like the linker error is only a symptom, and the real reason is that !associated as well as SHF_LINK_ORDER can not express many-to-one relationship, right? Because ideally we would want to keep metadata alive as long as any inline location is alive, too. |
llvm/docs/LangRef.rst | ||
---|---|---|
6847 |
Exactly. Shall I rephrase this to make it clearer? (Do you a particular suggestion?) |
llvm/docs/LangRef.rst | ||
---|---|---|
6847 | Yeah, it would be good to expand this with the underlying reason for the limitation. |
llvm/docs/LangRef.rst | ||
---|---|---|
6844 | I thought it was SHF_LINK_ORDER. |
llvm/docs/LangRef.rst | ||
---|---|---|
6844 | Thanks for spotting this! Fixed in d833543dd52cfb126f4c6d765166e42da217b72a |
I thought it was SHF_LINK_ORDER.