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
10 // Check that we don't produce a relocation for the CIE pointer and therefore
11 // we have only one relocation in __debug_frame.
13 .section __TEXT,__text,regular,pure_instructions
26 .cfi_sections .debug_frame
29 // CHECK: (('section_name', '__debug_frame\x00\x00\x00')
30 // CHECK-NEXT: ('segment_name', '__DWARF\x00\x00\x00\x00\x00\x00\x00\x00\x00')
31 // CHECK-NEXT: ('address', 8)
32 // CHECK-NEXT: ('size', 52)
33 // CHECK-NEXT: ('offset', 332)
34 // CHECK-NEXT: ('alignment', 2)
35 // CHECK-NEXT: ('reloc_offset', 384)
36 // CHECK-NEXT: ('num_reloc', 2)
37 // CHECK-NEXT: ('flags', 0x2000000)
38 // CHECK-NEXT: ('reserved1', 0)
39 // CHECK-NEXT: ('reserved2', 0)
41 // CHECK-NEXT: ('_relocations', [
42 // CHECK-NEXT: # Relocation 0
43 // CHECK-NEXT: (('word-0', 0x2c),
44 // CHECK-NEXT: ('word-1', 0x4000001)),
45 // CHECK-NEXT: # Relocation 1
46 // CHECK-NEXT: (('word-0', 0x1c),
47 // CHECK-NEXT: ('word-1', 0x4000001)),