summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/emit-relocs-eh-frame.s
blob: 4df88585d34196a36f7af2ad7fff4354a583bd72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
# RUN: ld.lld --emit-relocs %t1.o -o %t
# RUN: llvm-readobj -r %t | FileCheck %s

# CHECK:      Relocations [
# CHECK-NEXT:   Section {{.*}} .rela.eh_frame {
# CHECK-NEXT:     0x{{.*}} R_X86_64_PC32 .text 0x0
# CHECK-NEXT:   }
# CHECK-NEXT: ]

.text
.globl foo
foo:
 .cfi_startproc
 .cfi_endproc
OpenPOWER on IntegriCloud