[LLD][ELF] - Remove file-class.a binary from inputs and improve the test case.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 23 Apr 2019 13:27:54 +0000 (13:27 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 23 Apr 2019 13:27:54 +0000 (13:27 +0000)
commit95203efc1ace6090da1b91af6d734d69fce742fd
treee9ee34f40a8b333d0641ee5bf7e564635f6ec2ab
parent06ff5eae5b45689a1dccfda5a1013bdc403eea34
[LLD][ELF] - Remove file-class.a binary from inputs and improve the test case.

file-class.a was used to diagnose the "corrupted ELF file: invalid file class"
error when the object was fetched from the archive.

file-class.a contained an object of 16 bytes size. I replaced it with
an echo call (because it is impossible to use yaml2obj for that, and I am
not sure it is worth to support), and also increased its size to 18 bytes.
That allowed to also test a case when such object is a regular input and not an
archive member (we have a bit different logic for these cases).

llvm-svn: 358985
lld/test/ELF/invalid/Inputs/file-class.a [deleted file]
lld/test/ELF/invalid/invalid-elf.test
lld/test/ELF/invalid/invalid-file-class.test [new file with mode: 0644]