summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/x86-64-reloc-range.s
blob: 2913458ab5cb69121ecce73c60379af66bf5af80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
// RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s

// CHECK: {{.*}}:(.text+0x3): relocation R_X86_64_PC32 out of range: 2147483648 is not in [-2147483648, 2147483647]
// CHECK-NOT: relocation

        lea     foo(%rip), %rax
        lea     foo(%rip), %rax

        .hidden foo
        .bss
        .zero 0x7fffe007
foo:
OpenPOWER on IntegriCloud