[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / x86-64-relax-got-abs.s
blobb88e3ccd8a4259df4606091d21dc9093f9fbc2e8
1 # REQUIRES: x86
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.
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7 # RUN: ld.lld %t.o -o %t.so -shared
8 # RUN: llvm-objdump --no-print-imm-hex -d %t.so | FileCheck %s
10 # CHECK: movq 4209(%rip), %rax
12 movq bar@GOTPCREL(%rip), %rax
13 .data
14 .global bar
15 .hidden bar
16 bar = 42