]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/discard-interp.s
Vendor import of lld trunk r321530:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / discard-interp.s
1 // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o
2 // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/../Inputs/shared.s -o %t2.o
3 // RUN: ld.lld -shared %t2.o -o %t2.so
4 // RUN: echo "PHDRS { text PT_LOAD FILEHDR PHDRS; } \
5 // RUN:       SECTIONS { . = SIZEOF_HEADERS; .text : { *(.text) } : text }" > %t.script
6 // RUN: ld.lld -dynamic-linker /lib64/ld-linux-x86-64.so.2 -rpath foo -rpath bar --script %t.script --export-dynamic %t.o %t2.so -o %t
7 // RUN: llvm-readobj -s %t | FileCheck %s
8
9 // CHECK-NOT:        Name: .interp
10
11 .global _start
12 _start: