1 // RUN: llvm-mc -triple i386-apple-darwin %s -filetype=obj -o - | macho-dump | FileCheck %s
3 // Make sure MC can handle file level .cfi_startproc and .cfi_endproc that creates
9 // Check that we don't produce a relocation for the CIE pointer and therefore
10 // we have only one relocation in __debug_frame.
12 .section __TEXT,__text,regular,pure_instructions
25 .cfi_sections .debug_frame
28 // CHECK: (('section_name', '__debug_frame\x00\x00\x00')
29 // CHECK-NEXT: ('segment_name', '__DWARF\x00\x00\x00\x00\x00\x00\x00\x00\x00')
30 // CHECK-NEXT: ('address', 8)
31 // CHECK-NEXT: ('size', 52)
32 // CHECK-NEXT: ('offset', 332)
33 // CHECK-NEXT: ('alignment', 2)
34 // CHECK-NEXT: ('reloc_offset', 384)
35 // CHECK-NEXT: ('num_reloc', 2)
36 // CHECK-NEXT: ('flags', 0x2000000)
37 // CHECK-NEXT: ('reserved1', 0)
38 // CHECK-NEXT: ('reserved2', 0)
40 // CHECK-NEXT: ('_relocations', [
41 // CHECK-NEXT: # Relocation 0
42 // CHECK-NEXT: (('word-0', 0x2c),
43 // CHECK-NEXT: ('word-1', 0x4000001)),
44 // CHECK-NEXT: # Relocation 1
45 // CHECK-NEXT: (('word-0', 0x1c),
46 // CHECK-NEXT: ('word-1', 0x4000001)),