brintos

brintos / llvm-project-archived public Read only

0
0
Text · 639 B · c10959c Raw
22 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o4# RUN: ld.lld -shared %t2.o -o %t2.so5# RUN: ld.lld --hash-style=sysv %t1.o %t2.so -o %t.out6# RUN: llvm-readobj -S -r %t.out | FileCheck %s7 8# CHECK: Section {9# CHECK-NOT: Name: .plt10 11# CHECK:      Relocations [12# CHECK-NEXT:   Section ({{.*}}) .rela.dyn {13# CHECK-NEXT:     R_X86_64_GLOB_DAT bar 0x014# CHECK-NEXT:     R_X86_64_GLOB_DAT zed 0x015# CHECK-NEXT:   }16# CHECK-NEXT: ]17 18.global _start19_start:20 movq bar@GOTPCREL(%rip), %rcx21 movq zed@GOTPCREL(%rip), %rcx22