forked from OSchip/llvm-project
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
RUN: lld -flavor gnu -target x86_64-linux -L%p/../elf/Inputs -lfnarchive \
|
|
RUN: --output-filetype=yaml --noinhibit-exec 2> %t.err
|
|
RUN: FileCheck %s < %t.err
|
|
|
|
RUN: lld -flavor gnu -target x86_64-linux -L%p/../elf/Inputs --whole-archive \
|
|
RUN: -lfnarchive --output-filetype=yaml --noinhibit-exec 2> %t1.err
|
|
RUN: FileCheck %s -check-prefix="WHOLEARCHIVE" < %t1.err
|
|
|
|
RUN: lld -flavor gnu -target x86_64-linux -L%p/../elf/Inputs --whole-archive \
|
|
RUN: --as-needed -lfnarchive --output-filetype=yaml --noinhibit-exec 2> %t2.err
|
|
RUN: FileCheck %s -check-prefix="ASNEEDED" < %t2.err
|
|
|
|
RUN: lld -flavor gnu -target x86_64-linux --sysroot=%p/../elf -L=/Inputs \
|
|
RUN: -lfnarchive --output-filetype=yaml --noinhibit-exec 2> %t3.err
|
|
RUN: FileCheck -check-prefix="SYSROOT" %s < %t3.err
|
|
|
|
CHECK: Name : {{[^ ]+}}elf/Inputs{{[\\/]}}libfnarchive.a
|
|
CHECK: Type : ELF File
|
|
CHECK: Attributes :
|
|
CHECK: - wholeArchive : false
|
|
CHECK: - asNeeded : false
|
|
|
|
WHOLEARCHIVE: Name : {{[^ ]+}}elf/Inputs{{[\\/]}}libfnarchive.a
|
|
WHOLEARCHIVE: Type : ELF File
|
|
WHOLEARCHIVE: Attributes :
|
|
WHOLEARCHIVE: - wholeArchive : true
|
|
WHOLEARCHIVE: - asNeeded : false
|
|
|
|
ASNEEDED: Name : {{[^ ]+}}elf/Inputs{{[\\/]}}libfnarchive.a
|
|
ASNEEDED: Type : ELF File
|
|
ASNEEDED: Attributes :
|
|
ASNEEDED: - wholeArchive : true
|
|
ASNEEDED: - asNeeded : true
|
|
|
|
SYSROOT: Name : {{[^ ]+}}elf/Inputs{{[\\/]}}libfnarchive.a
|
|
SYSROOT: Type : ELF File
|
|
SYSROOT: Attributes :
|
|
SYSROOT: - wholeArchive : false
|
|
SYSROOT: - asNeeded : false
|