[yaml2obj] - Teach tool to produce SHT_GROUP section with a custom type.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 15 Aug 2018 11:43:00 +0000 (11:43 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 15 Aug 2018 11:43:00 +0000 (11:43 +0000)
commit5290af8ad9ad8f5258305a11ca82936504fe5f42
tree2ee8b799fb840d5030328d9c68678ad1e8f26012
parent4b2317ebfb816d53cce4cd19f265e1aab0e04268
[yaml2obj] - Teach tool to produce SHT_GROUP section with a custom type.

Currently, it is possible to use yaml2obj for producing SHT_GROUP sections
of type GRP_COMDAT. For LLD test case I need to produce an object with
a broken (different from GRP_COMDAT) type.

The patch teaches tool to do such things.

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

llvm-svn: 339764
llvm/test/tools/yaml2obj/elf-comdat-broken.yaml [new file with mode: 0644]
llvm/tools/yaml2obj/yaml2elf.cpp