llvm/lib/DebugInfo/DWARF
Alex Bradbury bfd9349162 [DWARF][RISCV] Add support for RISC-V relocations needed for debug info
When code relaxation is enabled many RISC-V fixups are not resolved but
instead relocations are emitted. This happens even for DWARF debug
sections. Therefore, to properly support the parsing of DWARF debug info
we need to be able to resolve RISC-V relocations. This patch adds:

* Support for RISC-V relocations in RelocationResolver
* DWARF support for two relocations per object file offset
* DWARF changes to support relocations in more DIE fields

The two relocations per offset change is needed because some RISC-V
relocations (used for label differences) come in pairs.

Relocations can also be emitted for DWARF fields where relocations were
not yet evaluated. Adding relocation support for some of these fields is
essencial. On the other hand, LLVM currently emits RISC-V relocations
for fixups that could be safely evaluated, since they can never be
affected by code relaxations. This patch also adds relocation support
for the fields affected by those extraneous relocations (the DWARF unit
entry Length, and the DWARF debug line entry TotalLength and
PrologueLength), for testing purposes.

Differential Revision: https://reviews.llvm.org/D62062
Patch by Luís Marques.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366402 91177308-0d34-0410-b5e6-96231b3b80d8
2019-07-18 05:22:55 +00:00
..
CMakeLists.txt [DWARF] Revert r345546: Refactor range list extraction and dumping 2018-10-31 01:12:58 +00:00
DWARFAbbreviationDeclaration.cpp Revert "[DWARFFormValue] Cleanup DWARFFormValue interface. (2/2) (NFC)" 2019-03-02 01:10:00 +00:00
DWARFAcceleratorTable.cpp [DWARF] Fix dump of local/foreign TU lists in .debug_names 2019-04-29 08:55:10 +00:00
DWARFAddressRange.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFCompileUnit.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFContext.cpp [DWARF][RISCV] Add support for RISC-V relocations needed for debug info 2019-07-18 05:22:55 +00:00
DWARFDataExtractor.cpp [DWARF][RISCV] Add support for RISC-V relocations needed for debug info 2019-07-18 05:22:55 +00:00
DWARFDebugAbbrev.cpp [DebugInfo] Fix use-after-move warning. NFCI. 2019-05-08 10:09:57 +00:00
DWARFDebugAddr.cpp [DWARF] Simplify dumping of a .debug_addr section. 2019-07-02 09:57:28 +00:00
DWARFDebugAranges.cpp Cleanup: llvm::bsearch -> llvm::partition_point after r364719 2019-06-30 11:19:56 +00:00
DWARFDebugArangeSet.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugFrame.cpp Cleanup: llvm::bsearch -> llvm::partition_point after r364719 2019-06-30 11:19:56 +00:00
DWARFDebugInfoEntry.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugLine.cpp [DWARF][RISCV] Add support for RISC-V relocations needed for debug info 2019-07-18 05:22:55 +00:00
DWARFDebugLoc.cpp Cleanup: llvm::bsearch -> llvm::partition_point after r364719 2019-06-30 11:19:56 +00:00
DWARFDebugMacro.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugPubTable.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFDebugRangeList.cpp [DebugInfo] add SectionedAddress to DebugInfo interfaces. 2019-02-27 13:17:36 +00:00
DWARFDebugRnglists.cpp [DWARF] Delete a stray break and a stray comment. NFC 2019-03-23 16:15:40 +00:00
DWARFDie.cpp [DWARF] Simplify DWARFAttribute. NFC. 2019-07-16 06:53:06 +00:00
DWARFExpression.cpp [DWARF] Handle the DW_OP_entry_value operand 2019-06-27 13:52:34 +00:00
DWARFFormValue.cpp [DWARF][RISCV] Add support for RISC-V relocations needed for debug info 2019-07-18 05:22:55 +00:00
DWARFGdbIndex.cpp [llvm-dwarfdump] --gdb-index: fix uninitialized TuListOffset 2019-06-19 13:51:29 +00:00
DWARFListTable.cpp [DWARF][RISCV] Add support for RISC-V relocations needed for debug info 2019-07-18 05:22:55 +00:00
DWARFTypeUnit.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DWARFUnit.cpp [DWARF][RISCV] Add support for RISC-V relocations needed for debug info 2019-07-18 05:22:55 +00:00
DWARFUnitIndex.cpp Cleanup: llvm::bsearch -> llvm::partition_point after r364719 2019-06-30 11:19:56 +00:00
DWARFVerifier.cpp dwarfdump: Add a bit more DWARF64 support 2019-05-24 01:05:52 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00