[yaml2obj] - Allow custom fields for the SHT_UNDEF sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 24 Jul 2019 12:16:22 +0000 (12:16 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 24 Jul 2019 12:16:22 +0000 (12:16 +0000)
commit242da4e83eff12b1eac2f82bb1bd52a83a43184d
tree71197941f6794f8995a422375349f1d90017876b
parentbdc6b6e410114295fc80a6ac7d8784681fed39c7
[yaml2obj] - Allow custom fields for the SHT_UNDEF sections.

This is a follow-up refactoring patch for recently
introduced functionality which which reduces the code duplication
and also makes possible to redefine all possible fields of
the first SHT_NULL section (previously it was only possible to set
sh_link and sh_size).

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

llvm-svn: 366894
llvm/test/tools/yaml2obj/elf-custom-null-section.yaml
llvm/tools/yaml2obj/yaml2elf.cpp