[PATCH] D13286: [ELF2] Add --[no-]whole-archive command line switches

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 07:02:27 PDT 2015


On Thu, Oct 01, 2015 at 10:34:02AM +0000, Igor Kudrin via llvm-commits wrote:
> +// --whole-archive and --no-whole-archive should affect only archives which follow them
> +// RUN: lld -flavor gnu2 -o %t3 %t.o %t.a --whole-archive --no-whole-archive
> +// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=NOTADDED %s
> +// RUN: lld -flavor gnu2 -o %t3 %t.o --whole-archive %t.a --no-whole-archive
> +// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=ADDED %s

This is not testing the interesting and important case:

--whole-archive lib1.a --no-while-archive lib2.a --whole-archive lib3.a

should include everything from lib1.a and lib3.a and only references
things from lib2.a.

Joerg


More information about the llvm-commits mailing list