1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00
llvm-mirror/lib/DWARFLinker
Jonas Devlieghere 059e346af5 [dsymutil] Add preliminary support for DWARF 5.
Currently dsymutil will silently fail when processing binaries with
Dwarf 5 debug info. This patch adds rudimentary support for Dwarf 5 in
dsymutil.

 - Recognize relocations in the debug_addr section.
 - Recognize (a subset of) Dwarf 5 form values.
 - Emits valid Dwarf 5 compile unit header chains.

To simplify things (and avoid having to emit indexed sections) I decided
to emit the relocated addresses directly in the debug info section.

 - DW_FORM_strx gets relocated and rewritten to DW_FORM_strp
 - DW_FORM_addrx gets relocated and rewritten to DW_FORM_addr

Obviously there's a lot of work left, but this should be a step in the
right direction.

rdar://62345491

Differential revision: https://reviews.llvm.org/D94323
2021-01-12 21:55:41 -08:00
..
CMakeLists.txt [DWARFLinker] Link against BinaryFormat 2021-01-08 18:57:36 -08:00
DWARFLinker.cpp [dsymutil] Add preliminary support for DWARF 5. 2021-01-12 21:55:41 -08:00
DWARFLinkerCompileUnit.cpp [dsymutil] Add preliminary support for DWARF 5. 2021-01-12 21:55:41 -08:00
DWARFLinkerDeclContext.cpp [dsymutil][DWARFLinker][NFC] Refactor usages of UniquingStringPool. 2021-01-03 14:44:51 +03:00
DWARFStreamer.cpp [dsymutil] Add preliminary support for DWARF 5. 2021-01-12 21:55:41 -08:00