reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
# REQUIRES: x86

## Don't relax R_X86_64_GOTPCRELX to an absolute symbol.
## In -no-pie mode, it can be relaxed, but it may not worth it.

# RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64 %s -o %t.o
# RUN: ld.lld %t.o -o %t.so -shared
# RUN: llvm-objdump -d %t.so | FileCheck %s

# CHECK: movq  4209(%rip), %rax

	movq    bar@GOTPCREL(%rip), %rax
        .data
        .global bar
        .hidden bar
        bar = 42