[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / emit-relocs-debug.s
blob04fa0f8d961b346419a205922b11f2abc43d7423
1 # REQUIRES: x86
2 ## Test --emit-relocs handles .debug*
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
5 # RUN: ld.lld --emit-relocs %t.o -o %t
6 # RUN: llvm-readobj -r %t | FileCheck %s
7 # RUN: ld.lld --emit-relocs --strip-debug %t.o -o %t.no
8 # RUN: llvm-readobj -r %t.no | FileCheck --check-prefix=NO %s
10 # CHECK: Section {{.*}} .rela.debug_info {
11 # CHECK-NEXT: R_X86_64_64 .text 0x0
12 # CHECK-NEXT: }
14 # NO: Relocations [
15 # NO-NEXT: ]
17 foo:
19 .section .debug_info
20 .quad foo