brintos

brintos / llvm-project-archived public Read only

0
0
Text · 530 B · 7e7a62c Raw
17 lines · plain
1// REQUIRES: x862// RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj3// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s4// RUN: ld.lld --noinhibit-exec -shared %t.o -o %t 2>&1 | FileCheck %s5// RUN: ls %t6 7// CHECK: {{.*}}:(.text+0x3): relocation R_X86_64_PC32 out of range: 2147483648 is not in [-2147483648, 2147483647]; references section '.bss'8// CHECK-NOT: relocation9 10        lea     foo(%rip), %rax11        lea     foo(%rip), %rax12 13        .hidden foo14        .bss15        .zero 0x7fffdf8716foo:17