@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \
@ RUN: | llvm-readobj -S --sd --sr - | FileCheck %s
@ Check the .fnstart directive and the .fnend directive.
@ The .fnstart directive and .fnend directive should create an entry in
@ exception handling table. For example, if the function is defined in .text
@ section, then there should be an entry in .ARM.exidx section.
.syntax unified
.text
.globl func1
.align 2
.type func1,%function
.fnstart
func1:
bx lr
.fnend
@-------------------------------------------------------------------------------
@ Check the .text section.
@-------------------------------------------------------------------------------
@ CHECK: Sections
@-------------------------------------------------------------------------------
@ The first word should be relocated to the code address in .text section.
@ Besides, since this function is using compact model 0, thus we have to
@ add an relocation to __aeabi_unwind_cpp_pr0.
@-------------------------------------------------------------------------------
@ CHECK: Relocations