aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/no-dynamic-linker.s
blob: f5c7f4b8d072e4b787d660bc5fc480f774d48613 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %tso.o
# RUN: ld.lld -shared %tso.o -o %t.so
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o

# RUN: ld.lld -dynamic-linker foo --no-dynamic-linker %t.o %t.so -o %t
# RUN: llvm-readobj --program-headers %t | FileCheck %s --check-prefix=NODL
# NODL-NOT: PT_INTERP

# RUN: ld.lld --no-dynamic-linker -dynamic-linker foo %t.o %t.so -o %t
# RUN: llvm-readobj --program-headers %t | FileCheck %s --check-prefix=WITHDL
# WITHDL: PT_INTERP