aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/aarch64-fpic-prel64.s
blob: 0f5f08a88eb333b0052ccd6643551578f62b2d3c (plain) (blame)
1
2
3
4
5
6
7
// REQUIRES: aarch64
// RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o
// RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
// CHECK: {{.*}}:(.data+0x0): relocation R_AARCH64_PREL64 cannot be used against shared object; recompile with -fPIC.

.data
  .xword foo - .