File: test.yaml

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (254 lines) | stat: -rw-r--r-- 7,889 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# How to generate this file:
# 1. First take a swift file and run xcrun swiftc -g -v file.swift 
# secondfile.swift, make sure the two swift files are in a short path like /tmp/

# 2. Now you can see what the driver does, generate the object files in the 
# tmp directory

# 3. Run obj2yaml on object file to create a yaml file

# 4. I ran delta to reduce this file.

--- !mach-o
FileHeader:
  magic:           0xFEEDFACF
  cputype:         0x1000007
  cpusubtype:      0x3
  filetype:        0x1
  ncmds:           8
  sizeofcmds:      2240
  flags:           0x2000
  reserved:        0x0
LoadCommands:
  - cmd:             LC_SEGMENT_64
    cmdsize:         1992
    segname:         ''
    vmaddr:          0
    vmsize:          6592
    fileoff:         2272
    filesize:        6592
    maxprot:         7
    initprot:        7
    nsects:          24
    flags:           0
    Sections:
      - sectname:        __text
        segname:         __TEXT
        addr:            0x0
        size:            593
        offset:          0x8E0
        align:           4
        reloff:          0x22A0
        nreloc:          24
        flags:           0x80000400
        reserved1:       0x0
        reserved2:       0x0
        relocations:
          - address:         0x233
            symbolnum:       2
            pcrel:           true
            length:          2
            extern:          true
            type:            4
            scattered:       false
            value:           0
      - sectname:        __swift5_typeref
        segname:         __TEXT
        addr:            0x2D6
        size:            38
        offset:          0xBB6
        align:           1
        reloff:          0x2418
        nreloc:          4
        flags:           0x10000000
        reserved1:       0x0
        reserved2:       0x0
        content:         5369000001FFFFFFFF002473346D61696E31304D7950726F746F636F6C50000001FFFFFFFF00
        relocations:
          - address:         0x21
            symbolnum:       46
            pcrel:           false
            length:          3
            extern:          true
            type:            0
            scattered:       false
            value:           0
      - sectname:        __swift5_reflstr
        segname:         __TEXT
        addr:            0x318
        size:            12
        offset:          0xBF8
        align:           0
        reloff:          0x0
        nreloc:          0
        flags:           0x10000000
        reserved1:       0x0
        reserved2:       0x0
        content:         496E6E657200696E6E657200
      - sectname:        __swift5_assocty
        segname:         __TEXT
        addr:            0x324
        size:            24
        offset:          0xC04
        align:           2
        reloff:          0x2450
        nreloc:          8
        flags:           0x10000000
        reserved1:       0x0
        reserved2:       0x0
        content:         00000000FCFFFFFF0100000008000000F0FFFFFFECFFFFFF
        relocations:
          - address:         0x14
            symbolnum:       5
            pcrel:           false
            length:          2
            extern:          true
            type:            0
            scattered:       false
            value:           0
      - sectname:        __swift5_fieldmd
        segname:         __TEXT
        addr:            0x378
        size:            44
        offset:          0xC58
        align:           2
        reloff:          0x24C0
        nreloc:          8
        flags:           0x10000000
        reserved1:       0x0
        reserved2:       0x0
        content:         000000000000000000000C000100000002000000ECFFFFFFE8FFFFFF000000000000000000000C0000000000
        relocations:
          - address:         0x1C
            symbolnum:       12
            pcrel:           false
            length:          3
            extern:          false
            type:            0
            scattered:       false
            value:           0
  - cmd:             LC_BUILD_VERSION
    cmdsize:         24
    platform:        1
    minos:           786432
    sdk:             786688
    ntools:          0
  - cmd:             LC_SYMTAB
    cmdsize:         24
    symoff:          9824
    nsyms:           57
    stroff:          10736
    strsize:         1544
  - cmd:             LC_DYSYMTAB
    cmdsize:         80
    ilocalsym:       0
    nlocalsym:       16
    iextdefsym:      16
    nextdefsym:      31
    iundefsym:       47
    nundefsym:       10
    tocoff:          0
    ntoc:            0
    modtaboff:       0
    nmodtab:         0
    extrefsymoff:    0
    nextrefsyms:     0
    indirectsymoff:  0
    nindirectsyms:   0
    extreloff:       0
    nextrel:         0
    locreloff:       0
    nlocrel:         0
  - cmd:             LC_LINKER_OPTION
    cmdsize:         40
    count:           1
    PayloadBytes:    [ 0x2D, 0x6C, 0x73, 0x77, 0x69, 0x66, 0x74, 0x53, 
                       0x0, 0x0, 0x0, 0x0 ]
  - cmd:             LC_LINKER_OPTION
    cmdsize:         24
    count:           1
    PayloadBytes:    [ 0x2D, 0x6C, 0x73, 0x77, 0x69, 0x66, 0x74, 0x43, 
                       0x6F, 0x72, 0x65, 0x0 ]
  - cmd:             LC_LINKER_OPTION
    cmdsize:         32
    count:           1
    PayloadBytes:    [ 0x2D, 0x6C, 0x73, 0x77, 0x69, 0x66, 0x74, 0x5F, 
                       0x6E, 0x63, 0x79, 0x0 ]
  - cmd:             LC_LINKER_OPTION
    cmdsize:         24
    count:           1
    PayloadBytes:    [ 0x2D, 0x6C, 0x6F, 0x62, 0x6A, 0x63, 0x0, 0x0, 0x0, 
                       0x0, 0x0, 0x0 ]
LinkEditData:
  NameList:
    - n_strx:          1494
      n_type:          0xE
      n_sect:          9
      n_desc:          0
      n_value:         0
  StringTable:
    - ''
    - l_entry_point
    - '_$s4main12Conformance2V5innerSivs'
    - l_protocol_conformances
    - l_coro.devirt.trigger
    - '_$s4main10MyProtocolMp'
    - ___swift_reflection_version
    - _main
    - '_$s4main3AppVMn'
    - '_$s4main12Conformance2VMn'
    - '_$s4main12Conformance2V5innerSivpfi'
    - _symbolic Si
    - l_llvm.swift_module_hash
    - '_$s4main12Conformance2V5innerSivg'
    - '_$s4main3AppVMf'
    - '_$s4main12Conformance2VMf'
    - _swift_bridgeObjectRelease
    - l_type_metadata_table
    - '_$s4main12Conformance2VAA10MyProtocolAAMc'
    - '_$sSaMa'
    - '_$s4main3AppVMa'
    - '_$s4main12Conformance2VMa'
    - '_$s4main12Conformance2V5innerACSi_tcfcfA_'
    - '_$ss5print_9separator10terminatoryypd_S2StFfA1_'
    - '_$ss5print_9separator10terminatoryypd_S2StFfA0_'
    - '_$s4main3AppV5$mainyyFZ'
    - '_$s4main3AppVAAyyFZ'
    - '_$s4main12Conformance2VAA10MyProtocolA2aDP5inner5InnerQzvgTW'
    - _symbolic _____ 4main3AppV
    - '_$sytWV'
    - '_$sBi64_WV'
    - '_$s4main12Conformance2V5innerSivpMV'
    - _symbolic _____ 4main12Conformance2V
    - '_symbolic $s4main10MyProtocolP'
    - '_$s4main12Conformance2VAA10MyProtocolAAWP'
    - '_$sypN'
    - '_$s4main3AppVN'
    - '_$s4main12Conformance2VN'
    - '_$sSSN'
    - '_$s4main12Conformance2V5innerSivM'
    - '_$s4mainMXM'
    - '_$sSa12_endMutationyyF'
    - '_$ss5print_9separator10terminatoryypd_S2StF'
    - '_$ss27_allocateUninitializedArrayySayxG_BptBwlF'
    - '_$ss27_finalizeUninitializedArrayySayxGABnlF'
    - '_$s4main3AppVMF'
    - '_$s4main12Conformance2VMF'
    - '_$s4main3AppVACycfC'
    - '_$s4main12Conformance2VACycfC'
    - '_$s4main12Conformance2V5innerACSi_tcfC'
    - '_$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC'
    - '_$s4main12Conformance2VAA10MyProtocolAAMA'
    - l___unnamed_8
    - l___unnamed_7
    - l___unnamed_6
    - l___unnamed_5
    - l___unnamed_4
    - '_$s4main12Conformance2V5innerSivM.resume.0'
    - ''
    - ''
    - ''
    - ''
    - ''
    - ''
    - ''