• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: lldb-test object-file %t | FileCheck %s
3
4#CHECK:     Showing 2 sections
5#CHECK-NEXT:  Index: 0
6#CHECK-NEXT:  ID: 0x100
7#CHECK-NEXT:  Name: __PAGEZERO
8#CHECK-NEXT:  Type: container
9#CHECK-NEXT:  Permissions: ---
10#CHECK-NEXT:  Thread specific: no
11#CHECK-NEXT:  VM address: 0x0
12#CHECK-NEXT:  VM size: 4294967296
13#CHECK-NEXT:  File size: 0
14#CHECK-NEXT:  There are no subsections
15#CHECK-EMPTY:
16#CHECK-NEXT:  Index: 1
17#CHECK-NEXT:  ID: 0x200
18#CHECK-NEXT:  Name: __TEXT
19#CHECK-NEXT:  Type: container
20#CHECK-NEXT:  Permissions: r-x
21#CHECK-NEXT:  Thread specific: no
22#CHECK-NEXT:  VM address: 0x100000000
23#CHECK-NEXT:  VM size: 4096
24#CHECK-NEXT:  File size: 4096
25#CHECK-NEXT:  Showing 3 subsections
26#CHECK-NEXT:    Index: 0
27#CHECK-NEXT:    ID: 0x1
28#CHECK-NEXT:    Name: __text
29#CHECK-NEXT:    Type: code
30#CHECK-NEXT:    Permissions: r-x
31#CHECK-NEXT:    Thread specific: no
32#CHECK-NEXT:    VM address: 0x100000f30
33#CHECK-NEXT:    VM size: 22
34#CHECK-NEXT:    File size: 22
35#CHECK-EMPTY:
36#CHECK-NEXT:    Index: 1
37#CHECK-NEXT:    ID: 0x2
38#CHECK-NEXT:    Name: __unwind_info
39#CHECK-NEXT:    Type: compact-unwind
40#CHECK-NEXT:    Permissions: r-x
41#CHECK-NEXT:    Thread specific: no
42#CHECK-NEXT:    VM address: 0x100000f48
43#CHECK-NEXT:    VM size: 76
44#CHECK-NEXT:    File size: 76
45#CHECK-EMPTY:
46#CHECK-NEXT:    Index: 2
47#CHECK-NEXT:    ID: 0x3
48#CHECK-NEXT:    Name: __eh_frame
49#CHECK-NEXT:    Type: eh-frame
50#CHECK-NEXT:    Permissions: r-x
51#CHECK-NEXT:    Thread specific: no
52#CHECK-NEXT:    VM address: 0x100000f98
53#CHECK-NEXT:    VM size: 104
54#CHECK-NEXT:    File size: 104
55
56--- !mach-o
57FileHeader:      
58  magic:           0xFEEDFACF
59  cputype:         0x01000007
60  cpusubtype:      0x00000003
61  filetype:        0x00000002
62  ncmds:           12
63  sizeofcmds:      728
64  flags:           0x00000085
65  reserved:        0x00000000
66LoadCommands:    
67  - cmd:             LC_SEGMENT_64
68    cmdsize:         72
69    segname:         __PAGEZERO
70    vmaddr:          0
71    vmsize:          4294967296
72    fileoff:         0
73    filesize:        0
74    maxprot:         0
75    initprot:        0
76    nsects:          0
77    flags:           0
78  - cmd:             LC_SEGMENT_64
79    cmdsize:         312
80    segname:         __TEXT
81    vmaddr:          4294967296
82    vmsize:          4096
83    fileoff:         0
84    filesize:        4096
85    maxprot:         7
86    initprot:        5
87    nsects:          3
88    flags:           0
89    Sections:        
90      - sectname:        __text
91        segname:         __TEXT
92        addr:            0x0000000100000F30
93        size:            22
94        offset:          0x00000F30
95        align:           4
96        reloff:          0x00000000
97        nreloc:          0
98        flags:           0x80000400
99        reserved1:       0x00000000
100        reserved2:       0x00000000
101        reserved3:       0x00000000
102      - sectname:        __unwind_info
103        segname:         __TEXT
104        addr:            0x0000000100000F48
105        size:            76
106        offset:          0x00000F48
107        align:           2
108        reloff:          0x00000000
109        nreloc:          0
110        flags:           0x00000000
111        reserved1:       0x00000000
112        reserved2:       0x00000000
113        reserved3:       0x00000000
114      - sectname:        __eh_frame
115        segname:         __TEXT
116        addr:            0x0000000100000F98
117        size:            104
118        offset:          0x00000F98
119        align:           3
120        reloff:          0x00000000
121        nreloc:          0
122        flags:           0x0000000B
123        reserved1:       0x00000000
124        reserved2:       0x00000000
125        reserved3:       0x00000000
126...
127