]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/aarch64-fpic-adr_prel_pg_hi21.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / aarch64-fpic-adr_prel_pg_hi21.s
1 // REQUIRES: aarch64
2 // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
3 // RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
4 // CHECK: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against symbol dat; recompile with -fPIC
5 // CHECK: >>> defined in {{.*}}.o
6 // CHECK: >>> referenced by {{.*}}.o:(.text+0x0)
7
8   adrp x0, dat
9 .data
10 .globl dat
11 dat:
12   .word 0