1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/yaml2obj
Petr Hosek edacc113a8 [yaml2obj][ELF] Make symbols optional for relocations
Some kinds of relocations do not have symbols, like R_X86_64_RELATIVE
for instance. I would like to test this case in D36554 but currently
can't because symbols are required by yaml2obj. The other option is
using the empty symbol but that doesn't seem quite right to me.

This change makes the Symbol field of Relocation optional and in the
case where the user does not specify a symbol name the Symbol index is 0.

Patch by Jake Ehrlich

Differential Revision: https://reviews.llvm.org/D37276

llvm-svn: 312192
2017-08-30 23:13:31 +00:00
..
CMakeLists.txt Resubmit "[codeview] Make obj2yaml/yaml2obj support .debug$S..." 2017-06-14 15:59:27 +00:00
yaml2coff.cpp Resubmit "[codeview] Make obj2yaml/yaml2obj support .debug$S..." 2017-06-14 15:59:27 +00:00
yaml2elf.cpp [yaml2obj][ELF] Make symbols optional for relocations 2017-08-30 23:13:31 +00:00
yaml2macho.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
yaml2obj.cpp Try to fix uninitialized read reported by msan. 2017-06-15 23:44:19 +00:00
yaml2obj.h [WebAssembly] Improve support for WebAssembly binary format 2017-03-30 19:44:09 +00:00
yaml2wasm.cpp [WebAssembly] Expose the offset of each data segment 2017-07-12 00:24:54 +00:00