HomePhabricator

[yaml2elf/obj2yaml] - Allow normal parsing/dumping of the .rela.dyn section

Authored by grimar on Apr 18 2019, 4:02 AM.

Description

[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