Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
commitc5b3e5b6385695f142f30267209048238af9af8b
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 25 Jul 2019 10:19:23 +0000 (25 10:19 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 25 Jul 2019 10:19:23 +0000 (25 10:19 +0000)
treebeb72002b58fea7e13f40ef1978213159508d1cb
parent32c74c79f6c1439f282212d26dfdc4c46b30f7a4
Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."

With fix: do not use `stat` tool.

Original commit message:

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367003 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/yaml2obj/elf-custom-null-section.yaml
tools/yaml2obj/yaml2elf.cpp