[llvm-readobj][test] - Stop using binaries in gnu-phdrs.test, split and refine it.
authorGeorgii Rymar <grimar@accesssoftek.com>
Thu, 23 Apr 2020 08:09:38 +0000 (11:09 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Fri, 1 May 2020 15:31:24 +0000 (18:31 +0300)
commit07d448135f328d040e51f49541467004643525ea
treeaa164b00f6d0cc43763dd1283c976299721f8975
parent7cb5a51f386d9cbe1715e5006661f596edde4d54
[llvm-readobj][test] - Stop using binaries in gnu-phdrs.test, split and refine it.

gnu-phdrs.test uses 2 precompiled objects and has issues:

* It does not test all possible program headers.
* It does not test target-specific headers (arm, mips).
* It does not use --strict-whitespace --match-full-line to check the format of the output.
* It is possible to check things better/nicer.
* It also tests --section-mapping.

This patch makes gnu-phdrs.test to stop using binaries and addresses issues above.
It splits --section-mapping testing to gnu-section-mapping.test

I am going to use it as a base for a follow-up patch that should also test
section to segment mapping conditions that we currently have
(see the discussion in D78709)

Differential revision: https://reviews.llvm.org/D78805
llvm/test/tools/llvm-readobj/ELF/Inputs/phdrs-elf.exe-i386 [deleted file]
llvm/test/tools/llvm-readobj/ELF/Inputs/phdrs-elf.exe-x86_64 [deleted file]
llvm/test/tools/llvm-readobj/ELF/gnu-phdrs.test
llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping-no-shdrs.test [deleted file]
llvm/test/tools/llvm-readobj/ELF/gnu-section-mapping.test [new file with mode: 0644]