[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / x86-64-reloc-range.s
blob7e7a62cb66e3895e2270cf8f141229fb880e866a
1 // REQUIRES: x86
2 // RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
3 // RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
4 // RUN: ld.lld --noinhibit-exec -shared %t.o -o %t 2>&1 | FileCheck %s
5 // RUN: ls %t
7 // CHECK: {{.*}}:(.text+0x3): relocation R_X86_64_PC32 out of range: 2147483648 is not in [-2147483648, 2147483647]; references section '.bss'
8 // CHECK-NOT: relocation
10 lea foo(%rip), %rax
11 lea foo(%rip), %rax
13 .hidden foo
14 .bss
15 .zero 0x7fffdf87
16 foo: