[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)
commita630b340573fe141414a3b82c7bdf0b5c4a8ccf7
tree1e35b5d4ca8662d4a271e68d707395aa2b354d33
parent99b7277d390cbacf3304eb0f00d137582c520f4e
[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

llvm-svn: 358656
llvm/test/tools/obj2yaml/elf-reladyn-section-shinfo.yaml [new file with mode: 0644]
llvm/tools/yaml2obj/yaml2elf.cpp