[yaml2obj] - Allow overriding the sh_size field.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 11 Jul 2019 12:59:29 +0000 (12:59 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 11 Jul 2019 12:59:29 +0000 (12:59 +0000)
commiteb41f7f081a8e9e20e3cb559c181c1097f94216f
treebc62810c9b39459210e0e5872c784a3abcfb0021
parente195a91d2d6ac9322a4d8899611b4bfd49cadd6c
[yaml2obj] - Allow overriding the sh_size field.

There is no way to set broken sh_size field currently
for sections. It can be usefull for writing the
test cases.

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

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