> I am not sure what's the right approach for fixing this. Should
> be used on all platforms, or just for Windows PE-COFF? Can somebody
> familiar with intricacies of DWARF format on different platforms please
> comment of this?
section-relative offsets should be used on COFF.
Well, not everywhere it seems: for references into the .text section, gcc
still uses .long <offset from beginning of .text>
Can you fill the PR with short reproducer?
Are you referring to this: http://llvm.org/docs/HowToSubmitABug.html ?
Sorry, I'm new here.