150
|
1 # REQUIRES: x86
|
|
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
3
|
|
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
|
|
6
|
|
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
|
|
9
|
|
10 # CHECK: [Requesting program interpreter: foo]
|
|
11
|
|
12 # RUN: ld.lld %t.o -o %t
|
|
13 # RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s
|
|
14
|
|
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
|
|
17
|
|
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
|
|
21
|
|
22 # NO-NOT: .interp
|
|
23 # NO-NOT: PT_INTERP
|
|
24
|
|
25 .globl _start
|
|
26 _start:
|
|
27 nop
|