2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: ld.lld --dynamic-linker foo %t.o -o %t
5 # RUN: llvm-readelf --program-headers --section-headers %t | FileCheck --implicit-check-not=.bss %s
7 # RUN: ld.lld --dynamic-linker=foo %t.o -o %t
8 # RUN: llvm-readelf --program-headers --section-headers %t | FileCheck --implicit-check-not=.bss %s
10 # CHECK: [Requesting program interpreter: foo]
12 # RUN: ld.lld %t.o -o %t
13 # RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s
15 # RUN: ld.lld --dynamic-linker foo --no-dynamic-linker %t.o -o %t
16 # RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s
18 ## {clang,gcc} -nostdlib -r passes --dynamic-linker, and the expected behavior is to ignore it.
19 # RUN: ld.lld -r --dynamic-linker foo %t.o -o %t
20 # RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s