llvm-project/lld/test/ELF/linkerscript/discard-interp.test

15 lines
498 B
Plaintext

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux /dev/null -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: ld.lld -dynamic-linker foo -rpath bar -rpath baz --script %s --export-dynamic %t.o %t2.so -o %t
# RUN: llvm-readobj -S %t | FileCheck %s
# CHECK-NOT: Name: .interp
PHDRS { text PT_LOAD FILEHDR PHDRS; }
SECTIONS {
. = SIZEOF_HEADERS;
.text : { *(.text) } : text
}