]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/x86-64-reloc-pc32-fpic.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / x86-64-reloc-pc32-fpic.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s
4
5 # CHECK: relocation R_X86_64_PC32 cannot be used against symbol _shared; recompile with -fPIC
6 # CHECK: >>> defined in {{.*}}
7 # CHECK: >>> referenced by {{.*}}:(.data+0x1)
8
9 .data
10  .byte 0xe8
11  .long _shared - .