2018-06-06 21:56:51 +08:00
|
|
|
# REQUIRES: x86
|
2018-03-01 04:22:42 +08:00
|
|
|
# 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
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj -S %t | FileCheck %s
|
2018-03-01 04:22:42 +08:00
|
|
|
|
|
|
|
# CHECK-NOT: Name: .interp
|
|
|
|
|
|
|
|
PHDRS { text PT_LOAD FILEHDR PHDRS; }
|
|
|
|
SECTIONS {
|
|
|
|
. = SIZEOF_HEADERS;
|
|
|
|
.text : { *(.text) } : text
|
|
|
|
}
|