aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/aarch64-fpic-prel16.s
blob: d80b6e88a67a1a45dbe3dfe2034c55c39e5c0ac1 (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: Relocation R_AARCH64_PREL16 cannot be used when making a shared object; recompile with -fPIC.

.data
  .hword foo - .