1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
3 // FIXME: This is a horrible way of checking the output, we need an llvm-mc
6 // This is a case where llvm-mc computes a better layout than Darwin 'as'. This
7 // issue is that after the first jmp slides, the .align size must be
8 // recomputed -- otherwise the second jump will appear to be out-of-range for a
12 // CHECK: (('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
13 // CHECK: ('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
14 // CHECK: ('address', 0)
15 // CHECK: ('size', 306)
16 // CHECK: ('offset', 324)
17 // CHECK: ('alignment', 4)
18 // CHECK: ('reloc_offset', 0)
19 // CHECK: ('num_reloc', 0)
20 // CHECK: ('flags', 0x80000400)
21 // CHECK: ('reserved1', 0)
22 // CHECK: ('reserved2', 0)
28 .space (0xb3 - 0x8f), 0x90
30 .space (0xcd - 0xb5), 0x90
33 .space (0x130 - 0xd0),0x90
37 .zerofill __DATA,__bss,_sym,4,2