[PATCH] D82838: Parse section ranges when verifying DWARF so we can exclude addresses that should have been stripped from DWARF.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 22:00:33 PDT 2020


clayborg created this revision.
clayborg added reviewers: dblaikie, probinson, aprantl.
Herald added subscribers: llvm-commits, cmtice, MaskRay, hiraditya.
Herald added a reviewer: jhenderson.
Herald added a project: LLVM.

This change gets all of the section address ranges with executable permissions and registers these valid .text ranges with the verifier. This allows the verifier to ignore any address ranges that should have been stripped so they don't cause false overlapping errors. This is meant as a starting point to a solution for https://bugs.llvm.org/show_bug.cgi?id=46453. Hopefully we can discuss the pros and cons of this approach and see if this approach is worth persuing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82838

Files:
  llvm/include/llvm/DebugInfo/DIContext.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
  llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
  llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
  llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
  llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82838.274329.patch
Type: text/x-patch
Size: 13840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/d4a49510/attachment.bin>


More information about the llvm-commits mailing list