[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)
commit9df825f4297ff1cd716c8b5fc838166c99d3ee8c
treeaff7c72e7e6dfeef72a62e2e3e4761c3baed6466
parent7928fea4a75da7e48d13e5b165a3388b9667df25
[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

llvm-svn: 364898
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/yaml2obj/elf-override-shoffset.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/elf2yaml.cpp
llvm/tools/yaml2obj/yaml2elf.cpp