brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.7 KiB · 56e976a Raw
351 lines · yaml
1--- !fat-mach-o2 3# Contains two slices (arm64e and x86-64) for libfoo.dylib, each containing the4# following:5#6# int foo(void) { return 0; }7 8FatHeader:9  magic:           0xCAFEBABE10  nfat_arch:       211FatArchs:12  - cputype:         0x100000713    cpusubtype:      0x314    offset:          0x100015    size:            420016    align:           1217  - cputype:         0x100000C18    cpusubtype:      0x8000000219    offset:          0x400020    size:            1678421    align:           1422Slices:23  - !mach-o24    FileHeader:25      magic:           0xFEEDFACF26      cputype:         0x100000727      cpusubtype:      0x328      filetype:        0x629      ncmds:           1330      sizeofcmds:      56831      flags:           0x10008532      reserved:        0x033    LoadCommands:34      - cmd:             LC_SEGMENT_6435        cmdsize:         15236        segname:         __TEXT37        vmaddr:          038        vmsize:          409639        fileoff:         040        filesize:        409641        maxprot:         542        initprot:        543        nsects:          144        flags:           045        Sections:46          - sectname:        __text47            segname:         __TEXT48            addr:            0x2A049            size:            350            offset:          0x2A051            align:           452            reloff:          0x053            nreloc:          054            flags:           0x8000040055            reserved1:       0x056            reserved2:       0x057            reserved3:       0x058            content:         31C0C359      - cmd:             LC_SEGMENT_6460        cmdsize:         7261        segname:         __LINKEDIT62        vmaddr:          409663        vmsize:          409664        fileoff:         409665        filesize:        10466        maxprot:         167        initprot:        168        nsects:          069        flags:           070      - cmd:             LC_ID_DYLIB71        cmdsize:         4872        dylib:73          name:            2474          timestamp:       175          current_version: 076          compatibility_version: 077        Content:         libfoo.x86-64.dylib78        ZeroPadBytes:    579      - cmd:             LC_DYLD_CHAINED_FIXUPS80        cmdsize:         1681        dataoff:         409682        datasize:        4883      - cmd:             LC_DYLD_EXPORTS_TRIE84        cmdsize:         1685        dataoff:         414486        datasize:        2487      - cmd:             LC_SYMTAB88        cmdsize:         2489        symoff:          417690        nsyms:           191        stroff:          419292        strsize:         893      - cmd:             LC_DYSYMTAB94        cmdsize:         8095        ilocalsym:       096        nlocalsym:       097        iextdefsym:      098        nextdefsym:      199        iundefsym:       1100        nundefsym:       0101        tocoff:          0102        ntoc:            0103        modtaboff:       0104        nmodtab:         0105        extrefsymoff:    0106        nextrefsyms:     0107        indirectsymoff:  0108        nindirectsyms:   0109        extreloff:       0110        nextrel:         0111        locreloff:       0112        nlocrel:         0113      - cmd:             LC_UUID114        cmdsize:         24115        uuid:            A29E87C8-EF8B-3721-B0D3-9749DEBEEBBB116      - cmd:             LC_BUILD_VERSION117        cmdsize:         32118        platform:        1119        minos:           983040120        sdk:             984320121        ntools:          1122        Tools:123          - tool:            3124            version:         76481792125      - cmd:             LC_SOURCE_VERSION126        cmdsize:         16127        version:         0128      - cmd:             LC_LOAD_DYLIB129        cmdsize:         56130        dylib:131          name:            24132          timestamp:       2133          current_version: 88539136134          compatibility_version: 65536135        Content:         '/usr/lib/libSystem.B.dylib'136        ZeroPadBytes:    6137      - cmd:             LC_FUNCTION_STARTS138        cmdsize:         16139        dataoff:         4168140        datasize:        8141      - cmd:             LC_DATA_IN_CODE142        cmdsize:         16143        dataoff:         4176144        datasize:        0145    LinkEditData:146      ExportTrie:147        TerminalSize:    0148        NodeOffset:      0149        Name:            ''150        Flags:           0x0151        Address:         0x0152        Other:           0x0153        ImportName:      ''154        Children:155          - TerminalSize:    3156            NodeOffset:      12157            Name:            _foo158            Flags:           0x0159            Address:         0x2A0160            Other:           0x0161            ImportName:      ''162      NameList:163        - n_strx:          2164          n_type:          0xF165          n_sect:          1166          n_desc:          0167          n_value:         672168      StringTable:169        - ' '170        - _foo171        - ''172      FunctionStarts:  [ 0x2A0 ]173      ChainedFixups:   [ 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x2C, 174                         0x0, 0x0, 0x0, 0x2C, 0x0, 0x0, 0x0, 0x0, 0x0, 175                         0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 176                         0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 177                         0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]178  - !mach-o179    FileHeader:180      magic:           0xFEEDFACF181      cputype:         0x100000C182      cpusubtype:      0x80000002183      filetype:        0x6184      ncmds:           14185      sizeofcmds:      664186      flags:           0x100085187      reserved:        0x0188    LoadCommands:189      - cmd:             LC_SEGMENT_64190        cmdsize:         232191        segname:         __TEXT192        vmaddr:          0193        vmsize:          16384194        fileoff:         0195        filesize:        16384196        maxprot:         5197        initprot:        5198        nsects:          2199        flags:           0200        Sections:201          - sectname:        __text202            segname:         __TEXT203            addr:            0x2D8204            size:            8205            offset:          0x2D8206            align:           2207            reloff:          0x0208            nreloc:          0209            flags:           0x80000400210            reserved1:       0x0211            reserved2:       0x0212            reserved3:       0x0213            content:         00008052C0035FD6214          - sectname:        __unwind_info215            segname:         __TEXT216            addr:            0x2E0217            size:            88218            offset:          0x2E0219            align:           2220            reloff:          0x0221            nreloc:          0222            flags:           0x0223            reserved1:       0x0224            reserved2:       0x0225            reserved3:       0x0226            content:         010000001C000000000000001C000000000000001C00000002000000D80200004000000040000000E00200000000000040000000000000000000000000000000030000000C00010010000100000000000000000200000000227      - cmd:             LC_SEGMENT_64228        cmdsize:         72229        segname:         __LINKEDIT230        vmaddr:          16384231        vmsize:          16384232        fileoff:         16384233        filesize:        400234        maxprot:         1235        initprot:        1236        nsects:          0237        flags:           0238      - cmd:             LC_ID_DYLIB239        cmdsize:         48240        dylib:241          name:            24242          timestamp:       1243          current_version: 0244          compatibility_version: 0245        Content:         libfoo.arm64e.dylib246        ZeroPadBytes:    5247      - cmd:             LC_DYLD_CHAINED_FIXUPS248        cmdsize:         16249        dataoff:         16384250        datasize:        48251      - cmd:             LC_DYLD_EXPORTS_TRIE252        cmdsize:         16253        dataoff:         16432254        datasize:        24255      - cmd:             LC_SYMTAB256        cmdsize:         24257        symoff:          16464258        nsyms:           1259        stroff:          16480260        strsize:         8261      - cmd:             LC_DYSYMTAB262        cmdsize:         80263        ilocalsym:       0264        nlocalsym:       0265        iextdefsym:      0266        nextdefsym:      1267        iundefsym:       1268        nundefsym:       0269        tocoff:          0270        ntoc:            0271        modtaboff:       0272        nmodtab:         0273        extrefsymoff:    0274        nextrefsyms:     0275        indirectsymoff:  0276        nindirectsyms:   0277        extreloff:       0278        nextrel:         0279        locreloff:       0280        nlocrel:         0281      - cmd:             LC_UUID282        cmdsize:         24283        uuid:            0220C592-2D73-3642-B893-B7DA8FCD396C284      - cmd:             LC_BUILD_VERSION285        cmdsize:         32286        platform:        1287        minos:           983040288        sdk:             984320289        ntools:          1290        Tools:291          - tool:            3292            version:         76481792293      - cmd:             LC_SOURCE_VERSION294        cmdsize:         16295        version:         0296      - cmd:             LC_LOAD_DYLIB297        cmdsize:         56298        dylib:299          name:            24300          timestamp:       2301          current_version: 88539136302          compatibility_version: 65536303        Content:         '/usr/lib/libSystem.B.dylib'304        ZeroPadBytes:    6305      - cmd:             LC_FUNCTION_STARTS306        cmdsize:         16307        dataoff:         16456308        datasize:        8309      - cmd:             LC_DATA_IN_CODE310        cmdsize:         16311        dataoff:         16464312        datasize:        0313      - cmd:             LC_CODE_SIGNATURE314        cmdsize:         16315        dataoff:         16496316        datasize:        288317    LinkEditData:318      ExportTrie:319        TerminalSize:    0320        NodeOffset:      0321        Name:            ''322        Flags:           0x0323        Address:         0x0324        Other:           0x0325        ImportName:      ''326        Children:327          - TerminalSize:    3328            NodeOffset:      12329            Name:            _foo330            Flags:           0x0331            Address:         0x2D8332            Other:           0x0333            ImportName:      ''334      NameList:335        - n_strx:          2336          n_type:          0xF337          n_sect:          1338          n_desc:          0339          n_value:         728340      StringTable:341        - ' '342        - _foo343        - ''344      FunctionStarts:  [ 0x2D8 ]345      ChainedFixups:   [ 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x2C, 346                         0x0, 0x0, 0x0, 0x2C, 0x0, 0x0, 0x0, 0x0, 0x0, 347                         0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 348                         0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 349                         0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]350...351