1// REQUIRES: x86 2 3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/duplicated-plt-entry.s -o %t.o 4// RUN: ld.lld -shared %t.o -o %t.so 5 6// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o 7// RUN: ld.lld %t2.o %t.so -o %t2.so -shared 8 9// RUN: llvm-readobj -r %t2.so | FileCheck %s 10// CHECK: Relocations [ 11// CHECK-NEXT: Section ({{.*}}) .rela.plt { 12// CHECK-NEXT: R_X86_64_JUMP_SLOT bar 0x0 13// CHECK-NEXT: } 14// CHECK-NEXT: ] 15 16callq bar@PLT 17callq bar@PLT 18