1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o 4# RUN: ld.lld -shared %t2.o -o %t2.so 5# RUN: ld.lld --hash-style=sysv %t1.o %t2.so -o %t.out 6# RUN: llvm-readobj -S -r %t.out | FileCheck %s 7 8# CHECK: Section { 9# CHECK-NOT: Name: .plt 10 11# CHECK: Relocations [ 12# CHECK-NEXT: Section ({{.*}}) .rela.dyn { 13# CHECK-NEXT: R_X86_64_GLOB_DAT bar 0x0 14# CHECK-NEXT: R_X86_64_GLOB_DAT zed 0x0 15# CHECK-NEXT: } 16# CHECK-NEXT: ] 17 18.global _start 19_start: 20 movq bar@GOTPCREL(%rip), %rcx 21 movq zed@GOTPCREL(%rip), %rcx 22