OSDN Git Service

[yaml2obj] - Allow overriding sh_offset field from the YAML.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 2 Jul 2019 10:20:12 +0000 (10:20 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 2 Jul 2019 10:20:12 +0000 (10:20 +0000)
commitf88acd3458feed442e4961d93f5be43d87f65771
tree69542567933c7cb930c635e4343ddd0b97e92809
parentdf676652f4a05f7bcd67103d33232487b0734552
[yaml2obj] - Allow overriding sh_offset field from the YAML.

Some of our test cases are using objects which
has sections with a broken sh_offset field.

There was no way to set it from YAML until this patch.

Differential revision: https://reviews.llvm.org/D63879

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364898 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ObjectYAML/ELFYAML.h
lib/ObjectYAML/ELFYAML.cpp
test/tools/yaml2obj/elf-override-shoffset.yaml [new file with mode: 0644]
tools/obj2yaml/elf2yaml.cpp
tools/yaml2obj/yaml2elf.cpp