1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/tools/dsymutil
George Rimar 6c607daa04 [DWARF] - Take relocations in account when extracting ranges from .debug_ranges
I found this when investigated "Bug 32319 - .gdb_index is broken/incomplete" for LLD.

When we have object file with .debug_ranges section it may be filled with zeroes.
Relocations are exist in file to relocate this zeroes into real values later, but until that
a pair of zeroes is treated as terminator. And DWARF parser thinks there is no ranges at all
when I am trying to collect address ranges for building .gdb_index.

Solution implemented in this patch is to take relocations in account when parsing ranges.

Differential revision: https://reviews.llvm.org/D32228

llvm-svn: 301170
2017-04-24 10:19:45 +00:00
..
BinaryHolder.cpp
BinaryHolder.h
CMakeLists.txt
DebugMap.cpp
DebugMap.h
dsymutil.cpp
dsymutil.h
DwarfLinker.cpp [DWARF] - Take relocations in account when extracting ranges from .debug_ranges 2017-04-24 10:19:45 +00:00
LLVMBuild.txt
MachODebugMapParser.cpp
MachOUtils.cpp Spelling mistakes in comments. NFCI. 2017-03-30 12:59:53 +00:00
MachOUtils.h
NonRelocatableStringpool.h