summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/emit-relocs-debug.s
blob: 04fa0f8d961b346419a205922b11f2abc43d7423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# REQUIRES: x86
## Test --emit-relocs handles .debug*

# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
# RUN: ld.lld --emit-relocs %t.o -o %t
# RUN: llvm-readobj -r %t | FileCheck %s
# RUN: ld.lld --emit-relocs --strip-debug %t.o -o %t.no
# RUN: llvm-readobj -r %t.no | FileCheck --check-prefix=NO %s

# CHECK:      Section {{.*}} .rela.debug_info {
# CHECK-NEXT:   R_X86_64_64 .text 0x0
# CHECK-NEXT: }

# NO:      Relocations [
# NO-NEXT: ]

foo:

.section .debug_info
.quad foo
OpenPOWER on IntegriCloud