• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s
2
3--- !mach-o
4FileHeader:      
5  magic:           0xFEEDFACF
6  cputype:         0x01000007
7  cpusubtype:      0x80000003
8  filetype:        0x00000002
9  ncmds:           4
10  sizeofcmds:      224
11  flags:           0x00218085
12  reserved:        0x00000000
13LoadCommands:    
14  - cmd:             LC_SEGMENT_64
15    cmdsize:         72
16    segname:         __LINKEDIT
17    vmaddr:          4294979584
18    vmsize:          4096
19    fileoff:         1024
20    filesize:        2508
21    maxprot:         7
22    initprot:        1
23    nsects:          0
24    flags:           0
25  - cmd:             LC_DYLD_INFO_ONLY
26    cmdsize:         48
27    rebase_off:      1024
28    rebase_size:     8
29    bind_off:        1032
30    bind_size:       96
31    weak_bind_off:   0
32    weak_bind_size:  0
33    lazy_bind_off:   1128
34    lazy_bind_size:  624
35    export_off:      1752
36    export_size:     48
37  - cmd:             LC_SYMTAB
38    cmdsize:         24
39    symoff:          1816
40    nsyms:           30
41    stroff:          2436
42    strsize:         1096
43  - cmd:             LC_DYSYMTAB
44    cmdsize:         80
45    ilocalsym:       0
46    nlocalsym:       9
47    iextdefsym:      9
48    nextdefsym:      2
49    iundefsym:       11
50    nundefsym:       19
51    tocoff:          0
52    ntoc:            0
53    modtaboff:       0
54    nmodtab:         0
55    extrefsymoff:    0
56    nextrefsyms:     0
57    indirectsymoff:  2296
58    nindirectsyms:   35
59    extreloff:       0
60    nextrel:         0
61    locreloff:       0
62    nlocrel:         0
63LinkEditData:    
64  RebaseOpcodes:   
65    - Opcode:          REBASE_OPCODE_SET_TYPE_IMM
66      Imm:             1
67    - Opcode:          REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
68      Imm:             2
69      ExtraData:       
70        - 0x0000000000000028
71    - Opcode:          REBASE_OPCODE_DO_REBASE_ULEB_TIMES
72      Imm:             0
73      ExtraData:       
74        - 0x000000000000000F
75    - Opcode:          REBASE_OPCODE_DONE
76      Imm:             0
77...
78
79#CHECK: LinkEditData:
80#CHECK:   RebaseOpcodes:
81#CHECK:     - Opcode:          REBASE_OPCODE_SET_TYPE_IMM
82#CHECK:       Imm:             1
83#CHECK:     - Opcode:          REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
84#CHECK:       Imm:             2
85#CHECK:       ExtraData:       [ 0x28 ]
86#CHECK:     - Opcode:          REBASE_OPCODE_DO_REBASE_ULEB_TIMES
87#CHECK:       Imm:             0
88#CHECK:       ExtraData:       [ 0xF ]
89#CHECK:     - Opcode:          REBASE_OPCODE_DONE
90#CHECK:       Imm:             0
91