[yaml2obj] - Allow overriding sh_entsize for SHT_GNU_versym sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 5 Aug 2019 13:54:35 +0000 (13:54 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 5 Aug 2019 13:54:35 +0000 (13:54 +0000)
commit149aa2f7fc6214e7f340da9011a857d75fe5a652
tree7e3dcaaa6d7966116270717db5de95a699a67c07
parent2a4817637350661b9002c10ff830241697e0f639
[yaml2obj] - Allow overriding sh_entsize for SHT_GNU_versym sections.

This allows to write a test case for one of untested errors
in llvm/Object/ELF.h.

I did it in this patch to demonstrate.

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

llvm-svn: 367860
llvm/include/llvm/Object/ELF.h
llvm/test/Object/invalid.test
llvm/test/tools/yaml2obj/versym-section.yaml
llvm/tools/yaml2obj/yaml2elf.cpp