[PATCH] D76085: [DWARFLinker][dsymutil][NFC] add section index into address range.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 12 11:56:23 PDT 2020


avl created this revision.
avl added reviewers: JDevlieghere, friss, clayborg, dblaikie.
avl added projects: LLVM, debug-info.
Herald added subscribers: arphaman, hiraditya, aprantl.

dsymutil reads address ranges from DebugMap, which contains addresses
from linked binary(they are already resolved). These addresses
could be used as unique identifiers of address ranges belonging to
different sections. For the case when DWARFLinker optimizes not linked
object files(Remove obsolete debug info: D74169 <https://reviews.llvm.org/D74169>) it is necessary to have
additional identifier for addresses(since addresses for different
sections could clash). This patch adds SectionIndex to address ranges
to have a unique identifier for the address range.

Testing: it passes "check-all" lit testing. MD5 checksum for clang .dSYM
bundle matches for the dsymutil with/without that patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76085

Files:
  llvm/include/llvm/DWARFLinker/DWARFLinker.h
  llvm/include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h
  llvm/include/llvm/Object/ObjectFile.h
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/lib/DWARFLinker/DWARFLinkerCompileUnit.cpp
  llvm/tools/dsymutil/DwarfLinkerForBinary.h
  llvm/tools/dsymutil/DwarfStreamer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76085.249998.patch
Type: text/x-patch
Size: 21484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200312/efdb2aab/attachment.bin>


More information about the llvm-commits mailing list