[PATCH] D123469: [DebugInfo][llvm-dwarfutil] Combine overlapped address ranges.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 10 12:09:11 PDT 2022


avl created this revision.
avl added reviewers: clayborg, aprantl, JDevlieghere, jhenderson, dblaikie.
Herald added subscribers: hiraditya, emaste.
Herald added a project: All.
avl requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Current implementation of DWARFLinker does not combine overlapped address ranges.
ELF file built with LTO might contain overlapped address ranges(though this is an error).
It would be good if llvm-dwarfutil would be able to process such ranges in some
useful way. Thus, this patch allows DWARFLinker to combine overlapped ranges
in a single one.

Depends on D86539 <https://reviews.llvm.org/D86539>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123469

Files:
  llvm/include/llvm/DWARFLinker/DWARFLinker.h
  llvm/include/llvm/DWARFLinker/DWARFLinkerAddressRangesMap.h
  llvm/include/llvm/DWARFLinker/DWARFLinkerCompileUnit.h
  llvm/include/llvm/DWARFLinker/DWARFStreamer.h
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/lib/DWARFLinker/DWARFLinkerCompileUnit.cpp
  llvm/lib/DWARFLinker/DWARFStreamer.cpp
  llvm/test/tools/llvm-dwarfutil/ELF/gc-func-overlapping-address-ranges.test
  llvm/test/tools/llvm-dwarfutil/ELF/gc-unit-overlapping-address-ranges.test
  llvm/tools/dsymutil/DwarfLinkerForBinary.h
  llvm/tools/llvm-dwarfutil/DebugInfoLinker.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123469.421801.patch
Type: text/x-patch
Size: 37775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220410/d3334588/attachment.bin>


More information about the llvm-commits mailing list