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

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 09:32:34 PST 2017


gbreynoo added a comment.

The problem we see from a customer perspective is an inconsistency between including an archive with or without the --whole-archive argument.

When --whole-archive is used the archive is parsed on a file by file basis. When --whole-archive is not used, the archive is parsed by looking at the symbol table and files not in the symbol table are ignored. This means from a user perspective adding the --whole-archive argument can make a formally legal archive unexpectedly cause an error.


https://reviews.llvm.org/D30544





More information about the llvm-commits mailing list