2018-06-06 21:56:51 +08:00
|
|
|
// REQUIRES: x86
|
2016-05-21 04:02:27 +08:00
|
|
|
// RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
|
2018-07-03 01:48:23 +08:00
|
|
|
// RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
|
2018-11-21 01:04:11 +08:00
|
|
|
// RUN: ld.lld --noinhibit-exec -shared %t.o -o %t 2>&1 | FileCheck %s
|
|
|
|
// RUN: ls %t
|
2016-05-21 04:02:27 +08:00
|
|
|
|
2017-12-12 04:47:21 +08:00
|
|
|
// CHECK: {{.*}}:(.text+0x3): relocation R_X86_64_PC32 out of range: 2147483648 is not in [-2147483648, 2147483647]
|
2016-05-21 04:02:27 +08:00
|
|
|
// CHECK-NOT: relocation
|
|
|
|
|
|
|
|
lea foo(%rip), %rax
|
|
|
|
lea foo(%rip), %rax
|
|
|
|
|
|
|
|
.hidden foo
|
|
|
|
.bss
|
2019-09-16 15:05:34 +08:00
|
|
|
.zero 0x7fffdf87
|
2016-05-21 04:02:27 +08:00
|
|
|
foo:
|