OSDN Git Service

[ObjectYAML][MachO] Add support for relocations
authorAlexander Shaposhnikov <alexshap@fb.com>
Wed, 22 Apr 2020 18:50:55 +0000 (11:50 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Wed, 22 Apr 2020 18:50:55 +0000 (11:50 -0700)
commitc19c3293d3b14b2366d7bd36737b9a1517031f6e
tree28af035c027757fd6508552a1cec52d64f6a1a4c
parent1b3f1f443670f202a0490ccf9d1f7b28e949bfe7
[ObjectYAML][MachO] Add support for relocations

Add support for relocations for MachO to ObjectYAML / yaml2obj / obj2yaml.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D77844
llvm/include/llvm/ObjectYAML/MachOYAML.h
llvm/lib/ObjectYAML/MachOEmitter.cpp
llvm/lib/ObjectYAML/MachOYAML.cpp
llvm/test/ObjectYAML/MachO/relocations_arm64.yaml [new file with mode: 0644]
llvm/test/ObjectYAML/MachO/relocations_armv7.yaml [new file with mode: 0644]
llvm/test/ObjectYAML/MachO/relocations_empty.yaml [new file with mode: 0644]
llvm/test/ObjectYAML/MachO/relocations_ppc_big_endian.yaml [new file with mode: 0644]
llvm/test/ObjectYAML/MachO/relocations_x86_64.yaml [new file with mode: 0644]
llvm/test/ObjectYAML/MachO/virtual_section.yaml
llvm/tools/obj2yaml/macho2yaml.cpp