Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
To clarify this change (it's rather obscure in this plain form even though the change in principle is trivial); the third parameter to Streamer.EmitSymbolValue is bool IsSectionRelative = false. For ELF, these debug sections are mapped to address zero, so a normal, absolute address relocation works just fine, but COFF needs a section relative relocation, and COFF is the only target where needsDwarfSectionOffsetDirective() returns true.. This matches how EmitSymbolValue is called elsewhere in the same source file.
I'll add something to this effect in the commit message as well.
Comment Actions
Though I'm not very familiar with this code, I am pretty sure it's correct as the same pattern is used in other dwarf section references too.