3 # - the folded CUEs covered up to the last entries, even if they were removed/folded.
4 # - only entries that *should* be in eh_frame are actually included. (**)
5 # (**) This is where LD64 does differently.
7 # RUN: rm -rf %t; split-file %s %t
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/fold-tail.s -o %t/fold-tail.o
9 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/cues-range-gap.s -o %t/cues-range-gap.o
11 # RUN: %lld -o %t/fold-tail.out %t/fold-tail.o
12 # RUN: llvm-objdump --macho --syms --unwind-info %t/fold-tail.out | FileCheck %s
14 # RUN: %lld -o %t/cues-range-gap.out %t/cues-range-gap.o
16 # CHECK-LABEL: SYMBOL TABLE:
17 # CHECK: [[#%x,A_ADDR:]] l F __TEXT,__text _a
18 # CHECK: [[#%x,B_ADDR:]] l F __TEXT,__text _b
19 # CHECK: [[#%x,C_ADDR:]] l F __TEXT,__text _c
20 # CHECK: [[#%x,D_ADDR:]] l F __TEXT,__text _d
21 # CHECK: [[#%x,MAIN_ADDR:]] g F __TEXT,__text _main
23 ## Check that [1] offset starts at c's address + 3 (its length).
24 # CHECK-LABEL: Contents of __unwind_info section:
25 # CHECK: Top level indices: (count = 2)
26 # CHECK-NEXT : [0]: function offset=[[#%#.7x,MAIN_ADDR]]
27 # CHECK-NEXT : [1]: function offset=[[#%#.7x,C_ADDR + 3]]
59 // _d should
NOT have an entry in
.eh_frame
60 // So it shouldn
't be covered by the unwind table.
65 .subsections_via_symbols
84 // _d is intentionally placed in between the symbols with eh_frame entries.
85 // but _d should NOT have an entry in .eh_frame
86 // So it shouldn't be covered by the unwind table.
104 .subsections_via_symbols