99 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -triple=arm64-apple-darwin11 -filetype=obj -o %t %s3# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \4# RUN: -phony-externals %t 2>&1 | FileCheck %s5#6# Check that splitting of eh-frame sections works.7#8# CHECK: DWARFRecordSectionSplitter: Processing __TEXT,__eh_frame...9# CHECK: Processing block at10# CHECK: Processing CFI record at11# CHECK: Processing CFI record at12# CHECK: EHFrameEdgeFixer: Processing __TEXT,__eh_frame in "{{.*}}"...13# CHECK: Processing block at14# CHECK: Record is CIE15# CHECK: Processing block at16# CHECK: Record is FDE17# CHECK: Adding edge at {{.*}} to CIE at: {{.*}}18# CHECK: Existing edge at {{.*}} to PC begin at {{.*}}19# CHECK: Adding keep-alive edge from target at {{.*}} to FDE at {{.*}}20# CHECK: Existing edge at {{.*}} to LSDA at {{.*}}21 22 .section __TEXT,__text,regular,pure_instructions23 .globl _main24 .p2align 225_main:26Lfunc_begin0:27 .cfi_startproc28 .cfi_personality 155, ___gxx_personality_v029 .cfi_lsda 16, Lexception030 31 stp x20, x19, [sp, #-32]!32 stp x29, x30, [sp, #16]33 .cfi_def_cfa_offset 3234 .cfi_offset w30, -835 .cfi_offset w29, -1636 .cfi_offset w19, -2437 .cfi_offset w20, -3238 mov w0, #439 bl ___cxa_allocate_exception40 mov w8, #4241 str w8, [x0]42Ltmp0:43Lloh0:44 adrp x1, __ZTIi@GOTPAGE45Lloh1:46 ldr x1, [x1, __ZTIi@GOTPAGEOFF]47 mov x2, #048 bl ___cxa_throw49Ltmp1:50 51 brk #0x152LBB0_2:53Ltmp2:54 bl ___cxa_begin_catch55 ldr w19, [x0]56 bl ___cxa_end_catch57 mov x0, x1958 ldp x29, x30, [sp, #16]59 ldp x20, x19, [sp], #3260 ret61 .loh AdrpLdrGot Lloh0, Lloh162Lfunc_end0:63 .cfi_endproc64 .section __TEXT,__gcc_except_tab65 .p2align 266GCC_except_table0:67Lexception0:68 .byte 25569 .byte 15570 .uleb128 Lttbase0-Lttbaseref071Lttbaseref0:72 .byte 173 .uleb128 Lcst_end0-Lcst_begin074Lcst_begin0:75 .uleb128 Lfunc_begin0-Lfunc_begin076 .uleb128 Ltmp0-Lfunc_begin077 .byte 078 .byte 079 .uleb128 Ltmp0-Lfunc_begin080 .uleb128 Ltmp1-Ltmp081 .uleb128 Ltmp2-Lfunc_begin082 .byte 183 .uleb128 Ltmp1-Lfunc_begin084 .uleb128 Lfunc_end0-Ltmp185 .byte 086 .byte 087Lcst_end0:88 .byte 189 90 .byte 091 .p2align 292 93Ltmp3:94 .long __ZTIi@GOT-Ltmp395Lttbase0:96 .p2align 297 98.subsections_via_symbols99