llvm-project/llvm/lib/DWARFLinker
Jonas Devlieghere a17c90daf2
Re-land "[dsymutil] Account for DW_OP_convert being CU relative"
Currently, dsymutil treats the DW_OP_convert operand as absolute instead
of CU relative, as described by in the DWARFv5 spec, 2.5.1.6:

  "[DW_OP_convert] takes one operand, which is an unsigned LEB128 integer
  that represents the offset of a debugging information entry in the current
  compilation unit"

This patch makes dsymutil correctly treat the offset as CU relative,
preventing a crash when there are multiple compilation units.

Big thanks to Akira Hatanaka for figuring out this issue and providing
both a reduced test case and a proposed fix.
2022-07-12 18:46:23 -07:00
..
CMakeLists.txt [DWARFLinker] Link against BinaryFormat 2021-01-08 18:57:36 -08:00
DWARFLinker.cpp Re-land "[dsymutil] Account for DW_OP_convert being CU relative" 2022-07-12 18:46:23 -07:00
DWARFLinkerCompileUnit.cpp [DWARFLinker] mark odr candidates inside the same object file. 2022-06-28 19:48:49 +03:00
DWARFLinkerDeclContext.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
DWARFStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00