[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / x86-64-dyn-rel-error3.s
blob434ed01ef4d6eb6322385054ea804c0b891473eb
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: not ld.lld %t.o -shared -o /dev/null 2>&1 | FileCheck %s
5 # CHECK: error: relocation R_X86_64_8 cannot be used against symbol 'foo'; recompile with -fPIC
6 # CHECK: error: relocation R_X86_64_16 cannot be used against symbol 'foo'; recompile with -fPIC
7 # CHECK: error: relocation R_X86_64_PC8 cannot be used against symbol 'foo'; recompile with -fPIC
8 # CHECK: error: relocation R_X86_64_PC16 cannot be used against symbol 'foo'; recompile with -fPIC
10 .global foo
12 .data
13 .byte foo # R_X86_64_8
14 .short foo # R_X86_64_16
15 .byte foo - . # R_X86_64_PC8
16 .short foo - . # R_X86_64_PC16