brintos

brintos / llvm-project-archived public Read only

0
0
Text · 919 B · 9f5e96e Raw
22 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t.o3# RUN: ld.lld -o %t.so -shared %t.o4 5## Check we create PT_INTERP program header when it is specified in PHDRS.6# RUN: echo "PHDRS { interp PT_INTERP; }" > %t1.script7# RUN: ld.lld -o %t1 --script %t1.script %t.o %t.so --dynamic-linker foo8# RUN: llvm-readobj -l %t1 | FileCheck %s9# CHECK: PT_INTERP10 11## Check we do not create it if it is not specified,12## but only if PHDRS is not empty by itself.13# RUN: echo "PHDRS { ph_text PT_LOAD; }" > %t2.script14# RUN: ld.lld -o %t1 --script %t2.script %t.o %t.so --dynamic-linker foo15# RUN: llvm-readobj -l %t1 | FileCheck %s --check-prefix=NOINTERP16# NOINTERP-NOT: PT_INTERP17 18## Otherwise, if PHDRS is empty, we create PT_INTERP header.19# RUN: echo "PHDRS {}" > %t3.script20# RUN: ld.lld -o %t1 --script %t3.script %t.o %t.so --dynamic-linker foo21# RUN: llvm-readobj -l %t1 | FileCheck %s22