brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · 1f83b1b Raw
21 lines · plain
1# REQUIRES: x862 3## In dynamic linking, --unresolved-symbols=ignore-all behaves similar to -shared:4## for PLT relocations to undefined symbols, produce dynamic relocations if we5## emit .dynsym.6 7# RUN: llvm-mc -filetype=obj -triple=x86_64 %S/Inputs/shared.s -o %ta.o8# RUN: ld.lld -shared -soname=ta %ta.o -o %ta.so9# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o10# RUN: ld.lld %t.o %ta.so -o %t --unresolved-symbols=ignore-all -pie11# RUN: llvm-readobj -r %t | FileCheck %s12 13# CHECK:      Relocations [14# CHECK-NEXT:   Section ({{.*}}) .rela.plt {15# CHECK-NEXT:     R_X86_64_JUMP_SLOT foo 0x016# CHECK-NEXT:   }17# CHECK-NEXT: ]18 19_start:20callq foo@PLT21