[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / relocation-nocopy.s
blobbcd23a82c827218fcb9970647dd76002c78b7683
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
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 // CHECK: unresolvable relocation R_X86_64_32 against symbol 'x'
11 // CHECK: unresolvable relocation R_X86_64_32 against symbol 'y'
12 // CHECK: unresolvable relocation R_X86_64_32 against symbol 'z'
14 .text
15 .global _start
16 _start:
17 movl $5, x
18 movl $7, y
19 movl $9, z
20 movl $x, %edx
21 movl $y, %edx
22 movl $z, %edx