1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/tools/obj2yaml
Georgii Rymar 46e5f3f87e [yaml2obj/obj2yaml] - Add support for SHT_RELR sections.
Note: this is a reland with a trivial 2 lines fix in ELFState<ELFT>::writeSectionContent.
      It adds a check similar to ones we already have for other sections to fix the case revealed
      by bots, like http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/60744.

The encoded sequence of Elf*_Relr entries in a SHT_RELR section looks
like [ AAAAAAAA BBBBBBB1 BBBBBBB1 ... AAAAAAAA BBBBBB1 ... ]
i.e. start with an address, followed by any number of bitmaps. The address
entry encodes 1 relocation. The subsequent bitmap entries encode up to 63(31)
relocations each, at subsequent offsets following the last address entry.

More information is here:
https://github.com/llvm-mirror/llvm/blob/master/lib/Object/ELF.cpp#L272

This patch adds a support for these sections.

Differential revision: https://reviews.llvm.org/D71872
2020-01-15 15:15:24 +03:00
..
CMakeLists.txt
coff2yaml.cpp [Object/COFF.h] - Stop returning std::error_code in a few methods. NFCI. 2019-08-19 14:32:23 +00:00
dwarf2yaml.cpp [ObjectYAML] Fix lifetime issue in dumpDebugLines 2019-08-29 02:36:48 +00:00
elf2yaml.cpp [yaml2obj/obj2yaml] - Add support for SHT_RELR sections. 2020-01-15 15:15:24 +03:00
Error.cpp
Error.h Obj2YamlError - fix uninitialized variable warning. NFCI. 2019-11-08 16:26:20 +00:00
macho2yaml.cpp [yaml2obj/obj2yaml][MachO] Allow setting custom section data 2019-08-20 08:49:07 +00:00
minidump2yaml.cpp
obj2yaml.cpp Recommit r366052 "[obj2yaml] - Rework tool's error reporting logic for ELF target." 2019-07-15 11:53:39 +00:00
obj2yaml.h Recommit r366052 "[obj2yaml] - Rework tool's error reporting logic for ELF target." 2019-07-15 11:53:39 +00:00
wasm2yaml.cpp [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
xcoff2yaml.cpp