[yaml2obj] - Add a way to exclude specified sections from the section header.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 1 Jun 2020 09:13:02 +0000 (12:13 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 4 Jun 2020 10:50:35 +0000 (13:50 +0300)
commitc781e7370e9b408f27996175fcf07b02905e6db4
treed5e48f208633419226d0226ad9c6f4e0ce45c6e4
parent7fbbc82057c975777305fc9b8ef8c2bc729b3daf
[yaml2obj] - Add a way to exclude specified sections from the section header.

This implements a new "Excluded" key that can be used
to exclude entries from section header:

```
SectionHeaderTable:
  Sections:
    ...
  Excluded:
    - Name: .foo
```

Differential revision: https://reviews.llvm.org/D81005
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/yaml2obj/ELF/section-headers-exclude.yaml [new file with mode: 0644]
llvm/test/tools/yaml2obj/ELF/section-headers.yaml