You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
503 B
17 lines
503 B
// REQUIRES: x86
|
|
// RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
|
|
// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
|
|
// RUN: ld.lld --noinhibit-exec -shared %t.o -o %t 2>&1 | FileCheck %s
|
|
// RUN: ls %t
|
|
|
|
// 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 0x7fffdf87
|
|
foo:
|