@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \
@ RUN: | llvm-readobj -S --sd --sr --symbols - > %t
@ RUN: FileCheck %s < %t
@ RUN: FileCheck --check-prefix=RELOC %s < %t
@ Check whether the section is switched back properly.
@ The assembler should switch the section back to the corresponding section
@ after it have emitted the exception handling indices and tables. In this
@ test case, we are checking whether the section is correct when .section
@ directives is used.
@ In this example, func1 and func2 should be defined in .TEST1 section.
@ It is incorrect if the func2 is in .text, .ARM.extab.TEST1, or
@ .ARM.exidx.TEST1 sections.
.syntax unified
.section .TEST1
.globl func1
.align 2
.type func1,%function
.fnstart
func1:
bx lr
.personality __gxx_personality_v0
.handlerdata
.fnend
.globl func2
.align 2
.type func2,%function
.fnstart
func2:
bx lr
.personality __gxx_personality_v0
.handlerdata
.fnend
@-------------------------------------------------------------------------------
@ Check the .text section. This should be empty.
@-------------------------------------------------------------------------------
@ CHECK: Sections