diff options
author | George Rimar <grimar@accesssoftek.com> | 2017-09-04 10:30:39 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2017-09-04 10:30:39 +0000 |
commit | 2f95c8bccb73cb4d292a2c4e3704887da3414394 (patch) | |
tree | 8a825101811f635e11bca7d99282a48a8da26c34 /llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp | |
parent | 8703e3838068156b2e0ff80b218bf854a7eba84e (diff) | |
download | bcm5719-llvm-2f95c8bccb73cb4d292a2c4e3704887da3414394.tar.gz bcm5719-llvm-2f95c8bccb73cb4d292a2c4e3704887da3414394.zip |
[DebugInfo] - Fix for lld DWARF parsing of base address selection entries in range lists.
It solves issue of wrong section index evaluating for ranges when
base address is used.
Based on David Blaikie's patch D36097.
Differential revision: https://reviews.llvm.org/D37214
llvm-svn: 312477
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp index a40635568cd..861dd313fb0 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDataExtractor.cpp @@ -14,6 +14,8 @@ using namespace llvm; uint64_t DWARFDataExtractor::getRelocatedValue(uint32_t Size, uint32_t *Off, uint64_t *SecNdx) const { + if (SecNdx) + *SecNdx = -1ULL; if (!Section) return getUnsigned(Off, Size); Optional<RelocAddrEntry> Rel = Obj->find(*Section, *Off); |