1 # RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
2 # RUN: -filetype=obj -o %t.o %s
3 # RUN: llvm-jitlink -noexec -abs X=0x12 -check=%s %t.o
4 # RUN: not llvm-jitlink -noexec -abs X=0x123 %t.o 2>&1 | \
5 # RUN: FileCheck -check-prefix=CHECK-ERROR %s
7 # Check success and failure cases of R_X86_64_16 handling.
9 # jitlink-check: *{8}P = X
11 # CHECK-ERROR: relocation target "X" {{.*}} is out of range of Pointer8 fixup
14 .section .text.main,"ax",@progbits
22 .size main, .Lfunc_end0-main
28 .byte X # Using byte here generates R_X86_64_8.