2016-03-09 03:51:58 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs
|
2015-09-16 07:36:30 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: not ld.lld -shared %tabs %t -o %t2 2>&1 | FileCheck %s
|
2015-09-16 07:36:30 +08:00
|
|
|
// REQUIRES: x86
|
|
|
|
|
|
|
|
movl $big, %edx
|
2016-03-09 03:51:58 +08:00
|
|
|
movq $foo - 0x1000000000000, %rdx
|
2015-09-16 07:36:30 +08:00
|
|
|
|
2017-12-12 04:47:21 +08:00
|
|
|
# CHECK: {{.*}}:(.text+0x1): relocation R_X86_64_32 out of range: 68719476736 is not in [0, 4294967295]
|
|
|
|
# CHECK: {{.*}}:(.text+0x8): relocation R_X86_64_32S out of range: -281474976710656 is not in [-2147483648, 2147483647]
|