[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / dynamic-linker.s
blob7330b52e155edd9fa1547e12a8849ec5c625a7f2
1 # REQUIRES: x86
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
22 # NO-NOT: .interp
23 # NO-NOT: PT_INTERP
25 .globl _start
26 _start:
27 nop