aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/x86-64-reloc-error.s
blob: ece1bd45aa4faa26bf7f923cb96524900aba14c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: not ld.lld -shared %tabs %t -o %t2 2>&1 | FileCheck %s
// REQUIRES: x86

  movl $big, %edx
  movq $foo - 0x1000000000000, %rdx

# CHECK: {{.*}}:(.text+0x1): relocation R_X86_64_32 out of range
# CHECK: {{.*}}:(.text+0x8): relocation R_X86_64_32S out of range