brintos

brintos / llvm-project-archived public Read only

0
0
Text · 439 B · 54f9eb3 Raw
19 lines · plain
1// REQUIRES: aarch642// RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o3// RUN: ld.lld %t.o -o %t4// RUN: llvm-readelf -r %t | FileCheck --check-prefix=RELOC %s5// RUN: llvm-readelf -x .got %t | FileCheck %s6 7// RELOC: no relocations8 9// CHECK: 0x002201a0 00000000 0000000010 11        .globl  _start12_start:13        adrp    x8, :got:foo14        ldr     x8, [x8, :got_lo12:foo]15        ldr     w0, [x8]16        ret17 18        .weak   foo19