[llvm-readobj/elf] - Refine the malformed-pt-dynamic.test.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 17 Aug 2020 13:38:56 +0000 (16:38 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 18 Aug 2020 08:51:03 +0000 (11:51 +0300)
commit6786b3e307175a2e26b88c161c4a7ed999ef2185
tree03e6d902b07709d310612b8e55bc2dfde7a865a6
parentb475eca1ed8b57bc7457c92b837f93db710c38bc
[llvm-readobj/elf] - Refine the malformed-pt-dynamic.test.

This is splitted out from D85519, but significantly reworked.

Changes:
1) This test was changed to stop using python.
2) Use NoHeaders: true instead of `llvm-objcopy --strip-sections`.
3) Test llvm-readelf too (not just llvm-readobj).
4) Simplify the YAML used a bit (e.g. remove PT_LOAD).
5) Test 2 different cases: objects with section header table and without.

Differential revision: https://reviews.llvm.org/D86073
llvm/test/tools/llvm-readobj/ELF/malformed-pt-dynamic.test