3 ## Test that we correctly handle symbol relocations in the compact unwind
6 ## llvm-mc does not emit such relocations for compact unwind, but `ld -r` does.
7 ## As such, these yaml files were from an object file produced with 'ld -r',
16 ## .cfi_personality 155, ___gxx_personality_v0
17 ## .cfi_lsda 16, _exception0
18 ## .cfi_def_cfa_offset 16
22 ## .section __TEXT,__gcc_except_tab
26 ## llvm-mc -filetype=obj -triple=x86_64-apple-macos10.15 -o foo1.o foo.s
27 ## ld -r -o foo.o foo1.o
29 # RUN: rm -rf %t; mkdir -p %t
30 # RUN: yaml2obj %s -o %t/foo.o
31 # RUN: %lld -dylib -lc++ %t/foo.o -o %t/foo
32 # RUN: llvm-objdump --macho --syms --unwind-info %t/foo | FileCheck %s
34 # CHECK: SYMBOL TABLE:
35 # CHECK-DAG: [[#%x,FOO:]] g F __TEXT,__text _foo
36 # CHECK-DAG: [[#%x,EXCEPT0:]] l O __TEXT,__gcc_except_tab _exception0
38 # CHECK: LSDA descriptors:
39 # CHECK-NEXT: [0]: function offset=0x[[#%.8x,FOO]], LSDA offset=0x[[#%.8x,EXCEPT0]]
77 - sectname
: __gcc_except_tab
90 - sectname
: __eh_frame
102 content
: 1C00000000000000017A504C5200017810079B0400000010100C0708900100002400000004000000F8FFFFFFFFFFFFFF010000000000000008E7FFFFFFFFFFFFFF0E100000000000
160 - sectname
: __compact_unwind
172 content
: '0000000000000000010000000000024200000000000000000000000000000000'
242 - ___gxx_personality_v0