28 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3 4# RUN: ld.lld --dynamic-linker foo %t.o -o %t5# RUN: llvm-readelf --program-headers --section-headers %t | FileCheck --implicit-check-not=.bss %s6 7# RUN: ld.lld --dynamic-linker=foo %t.o -o %t8# RUN: llvm-readelf --program-headers --section-headers %t | FileCheck --implicit-check-not=.bss %s9 10# CHECK: [Requesting program interpreter: foo]11 12# RUN: ld.lld %t.o -o %t13# RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s14 15# RUN: ld.lld --dynamic-linker foo --no-dynamic-linker %t.o -o %t16# RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s17 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 %t20# RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=NO %s21 22# NO-NOT: .interp23# NO-NOT: PT_INTERP24 25.globl _start26_start:27 nop28