summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/discard-interp.s
blob: 5f2d82ea4ab27dff03628c38222860cf7654d227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/../Inputs/shared.s -o %t2.o
// RUN: ld.lld -shared %t2.o -o %t2.so
// RUN: echo "PHDRS { text PT_LOAD FILEHDR PHDRS; } \
// RUN:       SECTIONS { .text : { *(.text) } : text }" >> %t.script
// 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
// RUN: llvm-readobj -s %t | FileCheck %s

// CHECK-NOT:        Name: .interp

.global _start
_start:
OpenPOWER on IntegriCloud