17 lines · plain
1# REQUIRES: x862 3## Don't relax R_X86_64_GOTPCRELX to an absolute symbol.4## In -no-pie mode, it can be relaxed, but it may not worth it.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o7# RUN: ld.lld %t.o -o %t.so -shared8# RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck %s9 10# CHECK: movq 4209(%rip), %rax11 12 movq bar@GOTPCREL(%rip), %rax13 .data14 .global bar15 .hidden bar16 bar = 4217