brintos

brintos / llvm-project-archived public Read only

0
0
Text · 530 B · 3b7bf95 Raw
15 lines · plain
1// REQUIRES: aarch642// RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o3// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s4// CHECK: error: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against symbol 'dat'; recompile with -fPIC5// CHECK: >>> defined in {{.*}}.o6// CHECK: >>> referenced by {{.*}}.o:(.text+0x0)7// CHECK: error: relocation R_AARCH64_ADR_PREL_PG_HI21_NC cannot be used against symbol 'dat'; recompile with -fPIC8 9  adrp x0, dat10  adrp x0, :pg_hi21_nc:dat11.data12.globl dat13dat:14  .word 015