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 -debug-only=jitlink -define-abs bar=0x01 \
6 # RUN: -define-abs _ZTIi=0x02 -noexec %t 2>&1 | FileCheck %s
8 # FIXME: This test should run on windows. Investigate spurious
9 # 'note: command had no output on stdout or stderr' errors, then re-enable.
11 # Check that a basic .eh-frame section is recognized and parsed. We
12 # Expect to see two FDEs with corresponding keep-alive edges.
14 # CHECK: Adding keep-alive edge from target at {{.*}} to FDE at
15 # CHECK: Adding keep-alive edge from target at {{.*}} to FDE at
18 .file "exceptions.cpp"
26 .cfi_def_cfa_offset 16
28 callq __cxa_allocate_exception@PLT
30 movq _ZTIi@GOTPCREL
(%rip
), %rsi
35 .size foo, .Lfunc_end0-foo
44 .cfi_personality 155, DW.ref.__gxx_personality_v0
45 .cfi_lsda 27, .Lexception0
48 .cfi_def_cfa_offset 16
60 .cfi_def_cfa_offset 16
63 callq __cxa_begin_catch@PLT
64 callq __cxa_end_catch@PLT
71 .size main, .Lfunc_end1-main
73 .section .gcc_except_table,"a",@progbits
79 .uleb128 .Lttbase0-.Lttbaseref0
82 .uleb128 .Lcst_end0-.Lcst_begin0
84 .uleb128 .Ltmp0-.Lfunc_begin0
85 .uleb128 .Ltmp1-.Ltmp0
86 .uleb128 .Ltmp2-.Lfunc_begin0
88 .uleb128 .Ltmp1-.Lfunc_begin0
89 .uleb128 .Lfunc_end1-.Ltmp1
99 .quad .L_ZTIi.DW.stub-.Ltmp3
107 .hidden DW.ref.__gxx_personality_v0
108 .weak DW.ref.__gxx_personality_v0
109 .section .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat
111 .type DW.ref.__gxx_personality_v0,@object
112 .size DW.ref.__gxx_personality_v0, 8
113 DW.ref.__gxx_personality_v0
:
114 .quad __gxx_personality_v0
115 .ident "clang version 12.0.0 (git@github.com:llvm/llvm-project.git afd483e57d166418e94a65bd9716e7dc4c114eed)"
116 .section ".note.GNU-stack","",@progbits
118 .addrsig_sym __gxx_personality_v0