brintos

brintos / llvm-project-archived public Read only

0
0
Text · 779 B · 16306d2 Raw
30 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o4# RUN: ld.lld %t.o -shared -soname=t.so -o %t.so5# RUN: echo '{ foo; };' > %t.list6# RUN: ld.lld %t.o %t.so -shared --dynamic-list %t.list -o %t7# RUN: llvm-readelf --dyn-syms %t | FileCheck --check-prefix=SYM %s8# RUN: llvm-readobj -r %t | FileCheck --check-prefix=REL %s9 10## foo and bar interpose symbols in another DSO, so both are exported,11## even if --dynamic-list specifies only foo.12 13# SYM-DAG: bar14# SYM-DAG: foo15 16## bar is not specified in --dynamic-list, so it is not preemptable when17## producing a DSO, and its PLT does not have an associated JUMP_SLOT.18 19# REL:      .rela.plt {20# REL-NEXT:   R_X86_64_JUMP_SLOT foo 0x021# REL-NEXT: }22 23.globl foo, bar24foo:25bar:26  ret27 28call foo@PLT29call bar@PLT30