diff options
author | timoh-ba <t.habighorst@beckhoff.com> | 2024-03-21 16:30:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 17:30:10 +0200 |
commit | 7650a01927b8488b1d6d0930109e78c695193faf (patch) | |
tree | afacf900464a7e37f81e5030561931e7c92faa2a /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 50801f1095d33e712c3a51fdeef82569bd09007f (diff) | |
download | llvm-7650a01927b8488b1d6d0930109e78c695193faf.zip llvm-7650a01927b8488b1d6d0930109e78c695193faf.tar.gz llvm-7650a01927b8488b1d6d0930109e78c695193faf.tar.bz2 |
[DWARF5][COFF] Emit section-relative .debug_line_str relocations (#83773)
Dwarf 5 allows separating filenames from .debug_line into a separate
.debug_line_str section. The strings are referenced relative to the
start of the .debug_line_str section. Previously, on COFF, the
relocation information instead caused offsets to be relocated to the
base address of the COFF-File. This lead to wrong offsets in linked
COFF (PE) files which caused the debugger to be unable to find the
correct source files.
This patch fixes this problem by making the offsets relative to the
start of the .debug_line_str section instead. There should be no
changes for ELF-Files as everything seems to be working there.
A test is also added to ensure that the correct relocation entries are
emitted.
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
0 files changed, 0 insertions, 0 deletions