22 lines · plain
1# REQUIRES: aarch642# RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-cloudabi %s -o %t.o3# RUN: ld.lld --hash-style=sysv -pie %t.o -o %t4# RUN: llvm-readobj -r %t | FileCheck %s5 6# If we're addressing a global relatively through the GOT, we still need to7# emit a relocation for the entry in the GOT itself.8# CHECK: Relocations [9# CHECK: Section (4) .rela.dyn {10# CHECK: 0x{{[0-9A-F]+}} R_AARCH64_RELATIVE - 0x{{[0-9A-F]+}}11# CHECK: }12# CHECK: ]13 14 .globl _start15 .type _start,@function16_start:17 adrp x8, :got:i18 ldr x8, [x8, :got_lo12:i]19 20 .type i,@object21 .comm i,4,422