18 lines · plain
1// REQUIRES: x862 3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/duplicated-plt-entry.s -o %t.o4// RUN: ld.lld -shared %t.o -o %t.so5 6// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o7// RUN: ld.lld %t2.o %t.so -o %t2.so -shared8 9// RUN: llvm-readobj -r %t2.so | FileCheck %s10// CHECK: Relocations [11// CHECK-NEXT: Section ({{.*}}) .rela.plt {12// CHECK-NEXT: R_X86_64_JUMP_SLOT bar 0x013// CHECK-NEXT: }14// CHECK-NEXT: ]15 16callq bar@PLT17callq bar@PLT18