[yaml2obj] - Report when unknown section is referenced from program header declaratio...
commit3905e939b533b3744cf1fa12ca490ec160fbd968
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 1 May 2019 09:45:55 +0000 (1 09:45 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 1 May 2019 09:45:55 +0000 (1 09:45 +0000)
tree9b59366bb409c2408ce9a3c7ea946344bfdf5b51
parente2d0cad605d6f5016eadd46a493703029c42742b
[yaml2obj] - Report when unknown section is referenced from program header declaration block.

Previously we did not report this.
Also this removes multiple lookups in the map
what cleanups the code.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359663 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/no-build-id.test
test/tools/yaml2obj/program-header.yaml
tools/yaml2obj/yaml2elf.cpp