OSDN Git Service

[yaml2elf/obj2yaml] - Allow normal parsing/dumping of the .rela.dyn section
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 18 Apr 2019 11:02:07 +0000 (11:02 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 18 Apr 2019 11:02:07 +0000 (11:02 +0000)
commitf7dff4c501c76972cf8a2bf96c04ac9a4b6be867
tree3d2f6d364be56298f5258ab9021ee54547b995f7
parentc858d530943d8ac82013b6d69a1cf4eb2e32d8fb
[yaml2elf/obj2yaml] - Allow normal parsing/dumping of the .rela.dyn section

.rela.dyn is a section that has sh_info normally
set to zero. And Info is an optional field in the description
of the relocation section in YAML.

But currently, yaml2obj would fail to produce the object when
Info is not explicitly listed.

The patch fixes the issue.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358656 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/obj2yaml/elf-reladyn-section-shinfo.yaml [new file with mode: 0644]
tools/yaml2obj/yaml2elf.cpp