[llvm-readobj][yaml2obj] Support SHT_LLVM_SYMPART, SHT_LLVM_PART_EHDR and SHT_LLVM_PA...
authorFangrui Song <maskray@google.com>
Fri, 6 Sep 2019 00:53:28 +0000 (00:53 +0000)
committerFangrui Song <maskray@google.com>
Fri, 6 Sep 2019 00:53:28 +0000 (00:53 +0000)
commit9d2504b6d805c08f333143e27b2f09a9e839554a
treec460bce40620d21bbd5e337aeb4c733a2d9bfc98
parentee093ba5c9b535d526b6d4e8f81099794598207e
[llvm-readobj][yaml2obj] Support SHT_LLVM_SYMPART, SHT_LLVM_PART_EHDR and SHT_LLVM_PART_PHDR

See http://lists.llvm.org/pipermail/llvm-dev/2019-February/130583.html
and D60242 for the lld partition feature.

This patch:

* Teaches yaml2obj to parse the 3 section types.
* Teaches llvm-readobj/llvm-readelf to dump the 3 section types.

There is no test for SHT_LLVM_DEPENDENT_LIBRARIES in llvm-readobj. Add
it as well.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D67228

llvm-svn: 371157
llvm/lib/Object/ELF.cpp
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/llvm-readobj/elf-section-types.test
llvm/tools/llvm-readobj/ELFDumper.cpp