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

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 15:07:22 PDT 2022


clayborg added a comment.

> Do you have a small/standalone lto example of these overlapped ranges - to understand both why they happen, and why they're invalid?

Just have LTO combine the contents of two functions with the same opcode bytes and you can end up with ranges within the same CU and across CUs that overlap. I don't consider these invalid, but if they are in the same CU, the verification using llvm-dwarfdump would emit errors.

I have also seen bad DWARF where you  have two functions that don't share the exact same range and yet do overlap. This is mostly again in LTO binaries where the LTO linker tried to change the DWARF.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123469/new/

https://reviews.llvm.org/D123469



More information about the llvm-commits mailing list