2 # UNSUPPORTED: system-windows
3 # RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
4 # RUN: -filetype=obj -o %t %s
5 # RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \
6 # RUN: -abs bar=0x01 -abs _ZTIi=0x02 %t 2>&1 \
9 # FIXME: This test should run on windows. Investigate spurious
10 # 'note: command had no output on stdout or stderr' errors, then re-enable.
12 # Check that a basic .eh-frame section is recognized and parsed. We
13 # Expect to see two FDEs with corresponding keep-alive edges.
15 # CHECK: Adding keep-alive edge from target at {{.*}} to FDE at
16 # CHECK: Adding keep-alive edge from target at {{.*}} to FDE at
19 .file "exceptions.cpp"
27 .cfi_def_cfa_offset 16
29 callq __cxa_allocate_exception@PLT
31 movq _ZTIi@GOTPCREL
(%rip
), %rsi
36 .size foo, .Lfunc_end0-foo
45 .cfi_personality 155, DW.ref.__gxx_personality_v0
46 .cfi_lsda 27, .Lexception0
49 .cfi_def_cfa_offset 16
61 .cfi_def_cfa_offset 16
64 callq __cxa_begin_catch@PLT
65 callq __cxa_end_catch@PLT
72 .size main, .Lfunc_end1-main
74 .section .gcc_except_table,"a",@progbits
80 .uleb128 .Lttbase0-.Lttbaseref0
83 .uleb128 .Lcst_end0-.Lcst_begin0
85 .uleb128 .Ltmp0-.Lfunc_begin0
86 .uleb128 .Ltmp1-.Ltmp0
87 .uleb128 .Ltmp2-.Lfunc_begin0
89 .uleb128 .Ltmp1-.Lfunc_begin0
90 .uleb128 .Lfunc_end1-.Ltmp1
100 .quad .L_ZTIi.DW.stub-.Ltmp3
108 .hidden DW.ref.__gxx_personality_v0
109 .weak DW.ref.__gxx_personality_v0
110 .section .data.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
112 .type DW.ref.__gxx_personality_v0,@object
113 .size DW.ref.__gxx_personality_v0, 8
114 DW.ref.__gxx_personality_v0
:
115 .quad __gxx_personality_v0
116 .ident "clang version 12.0.0 (git@github.com:llvm/llvm-project.git afd483e57d166418e94a65bd9716e7dc4c114eed)"
117 .section ".note.GNU-stack","",@progbits
119 .addrsig_sym __gxx_personality_v0