1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/relocation-copy.s -o %t2.o
4// RUN: ld.lld -shared %t2.o -o %t.so
5// RUN: not ld.lld -z nocopyreloc %t.o %t.so -o /dev/null 2>&1 | FileCheck %s
6
7// CHECK: unresolvable relocation R_X86_64_32S against symbol 'x'
8// CHECK: unresolvable relocation R_X86_64_32S against symbol 'y'
9// CHECK: unresolvable relocation R_X86_64_32S against symbol 'z'
10
11.text
12.global _start
13_start:
14movl $5, x
15movl $7, y
16movl $9, z
17movl $x, %edx
18movl $y, %edx
19movl $z, %edx
20