[PATCH] D30544: [lld] - Ignore non-elf files in archives with --whole-archive

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 01:58:23 PST 2017


grimar added a comment.

Its not crashing for me, it shows fatal error "error : non-elf-archive.s.tmp.foo: invalid data encoding".
lf.bfd 2.27 also errors out this case: "non-elf-archive.s.tmp.a: member non-elf-archive.s.tmp.a(non-elf-archive.s.tmp.foo) in archive is not an object".
ld.gold 2.27 shows: error: non-elf-archive.s.tmp.a: member at 656 is not an ELF object

So I guess there are probably no reason to accept such inputs. Though I think we want to have testcase for that for checking what LLD do.


https://reviews.llvm.org/D30544





More information about the llvm-commits mailing list