libDebugInfo/DWARF: Apply relocations for debug_addr addresses in object files
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 22 May 2017 07:02:47 +0000 (07:02 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 22 May 2017 07:02:47 +0000 (07:02 +0000)
commitd2f3a941e002085932dac5ab7a10147e06265e1e
tree5591bb07b47ef780a1a015dbe8fbebf83c3acfa3
parent036dda25a5b125c88e9d2fd8d63b8120842eeb51
libDebugInfo/DWARF: Apply relocations for debug_addr addresses in object files

llvm-symbolizer would fail to symbolize addresses in unlinked object
files when handling .dwo file data because the addresses would not be
relocated in the same way as the ranges in the skeleton CU in the object
file.

Fix that so object files can be symbolized the same as executables.

llvm-svn: 303532
llvm/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.dwo [new file with mode: 0644]
llvm/test/DebugInfo/Inputs/split-dwarf-addr-object-relocation.o [new file with mode: 0644]
llvm/test/DebugInfo/llvm-symbolizer.test