1 // RUN: llvm-mc -n -triple x86_64-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
3 // Test case for rdar://10062261
5 // Must be no base, non-temporary, symbol before the reference to Lbar at the
6 // start of the section. What we are testing for is that the reference does not
7 // create a relocation entry.
12 .byte 0x0f,0x1f,0x40,0x00
13 .byte 0x0f,0x1f,0x40,0x00
18 // CHECK: ('cputype', 16777223)
19 // CHECK: ('cpusubtype', 3)
20 // CHECK: ('filetype', 1)
21 // CHECK: ('num_load_commands', 1)
22 // CHECK: ('load_commands_size', 152)
24 // CHECK: ('reserved', 0)
25 // CHECK: ('load_commands', [
26 // CHECK: # Load Command 0
27 // CHECK: (('command', 25)
28 // CHECK: ('size', 152)
29 // CHECK: ('segment_name', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
30 // CHECK: ('vm_addr', 0)
31 // CHECK: ('vm_size', 17)
32 // CHECK: ('file_offset', 184)
33 // CHECK: ('file_size', 17)
34 // CHECK: ('maxprot', 7)
35 // CHECK: ('initprot', 7)
36 // CHECK: ('num_sections', 1)
37 // CHECK: ('flags', 0)
38 // CHECK: ('sections', [
40 // CHECK: (('section_name', '__text\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
41 // CHECK: ('segment_name', '__TEXT\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
42 // CHECK: ('address', 0)
43 // CHECK: ('size', 17)
44 // CHECK: ('offset', 184)
45 // CHECK: ('alignment', 0)
46 // CHECK: ('reloc_offset', 0)
47 // CHECK: ('num_reloc', 0)
48 // CHECK: ('flags', 0x80000400)
49 // CHECK: ('reserved1', 0)
50 // CHECK: ('reserved2', 0)
51 // CHECK: ('reserved3', 0)
53 // CHECK: ('_relocations', [
55 // CHECK: ('_section_data', '90eb080f 1f40000f 1f4000b8 01000000 c3')