1// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s 2 3 .section __TEXT,__text,regular,pure_instructions 4Leh_func_begin0: 5 .section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support 6Ltmp3: 7Ltmp4 = Leh_func_begin0-Ltmp3 8 .long Ltmp4 9 10// CHECK: ('cputype', 7) 11// CHECK-NEXT: ('cpusubtype', 3) 12// CHECK-NEXT: ('filetype', 1) 13// CHECK-NEXT: ('num_load_commands', 1) 14// CHECK-NEXT: ('load_commands_size', 192) 15// CHECK-NEXT: ('flag', 0) 16// CHECK-NEXT: ('load_commands', [ 17// CHECK-NEXT: # Load Command 0 18// CHECK-NEXT: (('command', 1) 19// CHECK-NEXT: ('size', 192) 20// CHECK-NEXT: ('segment_name', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 21// CHECK-NEXT: ('vm_addr', 0) 22// CHECK-NEXT: ('vm_size', 4) 23// CHECK-NEXT: ('file_offset', 220) 24// CHECK-NEXT: ('file_size', 4) 25// CHECK-NEXT: ('maxprot', 7) 26// CHECK-NEXT: ('initprot', 7) 27// CHECK-NEXT: ('num_sections', 2) 28// CHECK-NEXT: ('flags', 0) 29// CHECK-NEXT: ('sections', [ 30// CHECK-NEXT: # Section 0 31// CHECK-NEXT: (('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 32// CHECK-NEXT: ('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 33// CHECK-NEXT: ('address', 0) 34// CHECK-NEXT: ('size', 0) 35// CHECK-NEXT: ('offset', 220) 36// CHECK-NEXT: ('alignment', 0) 37// CHECK-NEXT: ('reloc_offset', 0) 38// CHECK-NEXT: ('num_reloc', 0) 39// CHECK-NEXT: ('flags', 0x80000000) 40// CHECK-NEXT: ('reserved1', 0) 41// CHECK-NEXT: ('reserved2', 0) 42// CHECK-NEXT: ), 43// CHECK-NEXT: ('_relocations', [ 44// CHECK-NEXT: ]) 45// CHECK-NEXT: ('_section_data', '') 46// CHECK-NEXT: # Section 1 47// CHECK-NEXT: (('section_name', '__eh_frame\x00\x00\x00\x00\x00\x00') 48// CHECK-NEXT: ('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 49// CHECK-NEXT: ('address', 0) 50// CHECK-NEXT: ('size', 4) 51// CHECK-NEXT: ('offset', 220) 52// CHECK-NEXT: ('alignment', 0) 53// CHECK-NEXT: ('reloc_offset', 0) 54// CHECK-NEXT: ('num_reloc', 0) 55// CHECK-NEXT: ('flags', 0x6800000b) 56// CHECK-NEXT: ('reserved1', 0) 57// CHECK-NEXT: ('reserved2', 0) 58// CHECK-NEXT: ), 59// CHECK-NEXT: ('_relocations', [ 60// CHECK-NEXT: ]) 61// CHECK-NEXT: ('_section_data', '00000000') 62// CHECK-NEXT: ]) 63// CHECK-NEXT: ), 64// CHECK-NEXT: ]) 65