52 lines · plain
1@ RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o - \2@ RUN: | llvm-readobj -S --sd --sr - | FileCheck %s3 4@ Check the .cantunwind directive5 6@ When a function contains a .cantunwind directive, we should create an entry7@ in corresponding .ARM.exidx, and its second word should be EXIDX_CANTUNWIND.8 9 .syntax unified10 11 .text12 .globl func113 .align 214 .type func1,%function15 .fnstart16func1:17 bx lr18 .cantunwind19 .fnend20 21 22 23@-------------------------------------------------------------------------------24@ Check .text section25@-------------------------------------------------------------------------------26@ CHECK: Sections [27@ CHECK: Section {28@ CHECK: Name: .text29@ CHECK: SectionData (30@ CHECK: 0000: 1EFF2FE1 |../.|31@ CHECK: )32@ CHECK: }33 34 35@-------------------------------------------------------------------------------36@ Check .ARM.exidx section37@-------------------------------------------------------------------------------38@ CHECK: Section {39@ CHECK: Name: .ARM.exidx40@-------------------------------------------------------------------------------41@ The first word should be the offset to .text.42@ The second word should be EXIDX_CANTUNWIND (01000000).43@-------------------------------------------------------------------------------44@ CHECK: SectionData (45@ CHECK: 0000: 00000000 01000000 |........|46@ CHECK: )47@ CHECK: }48@ CHECK: ]49@ CHECK: Relocations [50@ CHECK: 0x0 R_ARM_PREL31 .text51@ CHECK: ]52