brintos

brintos / llvm-project-archived public Read only

0
0
Text · 7.7 KiB · da3aa9a Raw
255 lines · yaml
1# How to generate this file:2# 1. First take a swift file and run xcrun swiftc -g -v file.swift 3# secondfile.swift, make sure the two swift files are in a short path like /tmp/4 5# 2. Now you can see what the driver does, generate the object files in the 6# tmp directory7 8# 3. Run obj2yaml on object file to create a yaml file9 10# 4. I ran delta to reduce this file.11 12--- !mach-o13FileHeader:14  magic:           0xFEEDFACF15  cputype:         0x100000716  cpusubtype:      0x317  filetype:        0x118  ncmds:           819  sizeofcmds:      224020  flags:           0x200021  reserved:        0x022LoadCommands:23  - cmd:             LC_SEGMENT_6424    cmdsize:         199225    segname:         ''26    vmaddr:          027    vmsize:          659228    fileoff:         227229    filesize:        659230    maxprot:         731    initprot:        732    nsects:          2433    flags:           034    Sections:35      - sectname:        __text36        segname:         __TEXT37        addr:            0x038        size:            59339        offset:          0x8E040        align:           441        reloff:          0x22A042        nreloc:          2443        flags:           0x8000040044        reserved1:       0x045        reserved2:       0x046        relocations:47          - address:         0x23348            symbolnum:       249            pcrel:           true50            length:          251            extern:          true52            type:            453            scattered:       false54            value:           055      - sectname:        __swift5_typeref56        segname:         __TEXT57        addr:            0x2D658        size:            3859        offset:          0xBB660        align:           161        reloff:          0x241862        nreloc:          463        flags:           0x1000000064        reserved1:       0x065        reserved2:       0x066        content:         5369000001FFFFFFFF002473346D61696E31304D7950726F746F636F6C50000001FFFFFFFF0067        relocations:68          - address:         0x2169            symbolnum:       4670            pcrel:           false71            length:          372            extern:          true73            type:            074            scattered:       false75            value:           076      - sectname:        __swift5_reflstr77        segname:         __TEXT78        addr:            0x31879        size:            1280        offset:          0xBF881        align:           082        reloff:          0x083        nreloc:          084        flags:           0x1000000085        reserved1:       0x086        reserved2:       0x087        content:         496E6E657200696E6E65720088      - sectname:        __swift5_assocty89        segname:         __TEXT90        addr:            0x32491        size:            2492        offset:          0xC0493        align:           294        reloff:          0x245095        nreloc:          896        flags:           0x1000000097        reserved1:       0x098        reserved2:       0x099        content:         00000000FCFFFFFF0100000008000000F0FFFFFFECFFFFFF100        relocations:101          - address:         0x14102            symbolnum:       5103            pcrel:           false104            length:          2105            extern:          true106            type:            0107            scattered:       false108            value:           0109      - sectname:        __swift5_fieldmd110        segname:         __TEXT111        addr:            0x378112        size:            44113        offset:          0xC58114        align:           2115        reloff:          0x24C0116        nreloc:          8117        flags:           0x10000000118        reserved1:       0x0119        reserved2:       0x0120        content:         000000000000000000000C000100000002000000ECFFFFFFE8FFFFFF000000000000000000000C0000000000121        relocations:122          - address:         0x1C123            symbolnum:       12124            pcrel:           false125            length:          3126            extern:          false127            type:            0128            scattered:       false129            value:           0130  - cmd:             LC_BUILD_VERSION131    cmdsize:         24132    platform:        1133    minos:           786432134    sdk:             786688135    ntools:          0136  - cmd:             LC_SYMTAB137    cmdsize:         24138    symoff:          9824139    nsyms:           57140    stroff:          10736141    strsize:         1544142  - cmd:             LC_DYSYMTAB143    cmdsize:         80144    ilocalsym:       0145    nlocalsym:       16146    iextdefsym:      16147    nextdefsym:      31148    iundefsym:       47149    nundefsym:       10150    tocoff:          0151    ntoc:            0152    modtaboff:       0153    nmodtab:         0154    extrefsymoff:    0155    nextrefsyms:     0156    indirectsymoff:  0157    nindirectsyms:   0158    extreloff:       0159    nextrel:         0160    locreloff:       0161    nlocrel:         0162  - cmd:             LC_LINKER_OPTION163    cmdsize:         40164    count:           1165    PayloadBytes:    [ 0x2D, 0x6C, 0x73, 0x77, 0x69, 0x66, 0x74, 0x53, 166                       0x0, 0x0, 0x0, 0x0 ]167  - cmd:             LC_LINKER_OPTION168    cmdsize:         24169    count:           1170    PayloadBytes:    [ 0x2D, 0x6C, 0x73, 0x77, 0x69, 0x66, 0x74, 0x43, 171                       0x6F, 0x72, 0x65, 0x0 ]172  - cmd:             LC_LINKER_OPTION173    cmdsize:         32174    count:           1175    PayloadBytes:    [ 0x2D, 0x6C, 0x73, 0x77, 0x69, 0x66, 0x74, 0x5F, 176                       0x6E, 0x63, 0x79, 0x0 ]177  - cmd:             LC_LINKER_OPTION178    cmdsize:         24179    count:           1180    PayloadBytes:    [ 0x2D, 0x6C, 0x6F, 0x62, 0x6A, 0x63, 0x0, 0x0, 0x0, 181                       0x0, 0x0, 0x0 ]182LinkEditData:183  NameList:184    - n_strx:          1494185      n_type:          0xE186      n_sect:          9187      n_desc:          0188      n_value:         0189  StringTable:190    - ''191    - l_entry_point192    - '_$s4main12Conformance2V5innerSivs'193    - l_protocol_conformances194    - l_coro.devirt.trigger195    - '_$s4main10MyProtocolMp'196    - ___swift_reflection_version197    - _main198    - '_$s4main3AppVMn'199    - '_$s4main12Conformance2VMn'200    - '_$s4main12Conformance2V5innerSivpfi'201    - _symbolic Si202    - l_llvm.swift_module_hash203    - '_$s4main12Conformance2V5innerSivg'204    - '_$s4main3AppVMf'205    - '_$s4main12Conformance2VMf'206    - _swift_bridgeObjectRelease207    - l_type_metadata_table208    - '_$s4main12Conformance2VAA10MyProtocolAAMc'209    - '_$sSaMa'210    - '_$s4main3AppVMa'211    - '_$s4main12Conformance2VMa'212    - '_$s4main12Conformance2V5innerACSi_tcfcfA_'213    - '_$ss5print_9separator10terminatoryypd_S2StFfA1_'214    - '_$ss5print_9separator10terminatoryypd_S2StFfA0_'215    - '_$s4main3AppV5$mainyyFZ'216    - '_$s4main3AppVAAyyFZ'217    - '_$s4main12Conformance2VAA10MyProtocolA2aDP5inner5InnerQzvgTW'218    - _symbolic _____ 4main3AppV219    - '_$sytWV'220    - '_$sBi64_WV'221    - '_$s4main12Conformance2V5innerSivpMV'222    - _symbolic _____ 4main12Conformance2V223    - '_symbolic $s4main10MyProtocolP'224    - '_$s4main12Conformance2VAA10MyProtocolAAWP'225    - '_$sypN'226    - '_$s4main3AppVN'227    - '_$s4main12Conformance2VN'228    - '_$sSSN'229    - '_$s4main12Conformance2V5innerSivM'230    - '_$s4mainMXM'231    - '_$sSa12_endMutationyyF'232    - '_$ss5print_9separator10terminatoryypd_S2StF'233    - '_$ss27_allocateUninitializedArrayySayxG_BptBwlF'234    - '_$ss27_finalizeUninitializedArrayySayxGABnlF'235    - '_$s4main3AppVMF'236    - '_$s4main12Conformance2VMF'237    - '_$s4main3AppVACycfC'238    - '_$s4main12Conformance2VACycfC'239    - '_$s4main12Conformance2V5innerACSi_tcfC'240    - '_$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC'241    - '_$s4main12Conformance2VAA10MyProtocolAAMA'242    - l___unnamed_8243    - l___unnamed_7244    - l___unnamed_6245    - l___unnamed_5246    - l___unnamed_4247    - '_$s4main12Conformance2V5innerSivM.resume.0'248    - ''249    - ''250    - ''251    - ''252    - ''253    - ''254    - ''255