wasm-tools 1.240.0

CLI tools for interoperating with WebAssembly files
Documentation
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
   0x0 | 00 61 73 6d | version 1 (Module)
       | 01 00 00 00
   0x8 | 01 22       | type section
   0xa | 06          | 6 count
--- rec group 0 (implicit) ---
   0xb | 60 01 7f 00 | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [] }), shared: false } }
--- rec group 1 (implicit) ---
   0xf | 60 04 7f 7f | [type 1] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32, I32, I32, I32], results: [I32] }), shared: false } }
       | 7f 7f 01 7f
--- rec group 2 (implicit) ---
  0x17 | 60 05 7f 7f | [type 2] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32, I32, I32, I32, I32], results: [I32] }), shared: false } }
       | 7f 7f 7f 01
       | 7f         
--- rec group 3 (implicit) ---
  0x20 | 60 01 7f 01 | [type 3] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [I32] }), shared: false } }
       | 7f         
--- rec group 4 (implicit) ---
  0x25 | 60 00 01 7f | [type 4] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [I32] }), shared: false } }
--- rec group 5 (implicit) ---
  0x29 | 60 00 00    | [type 5] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false } }
  0x2c | 02 8b 01    | import section
  0x2f | 04          | 4 count
  0x30 | 03 65 6e 76 | import [memory 0] Import { module: "env", name: "__linear_memory", ty: Memory(MemoryType { memory64: false, shared: false, initial: 1, maximum: None, page_size_log2: None }) }
       | 0f 5f 5f 6c
       | 69 6e 65 61
       | 72 5f 6d 65
       | 6d 6f 72 79
       | 02 00 01   
  0x47 | 03 65 6e 76 | import [global 0] Import { module: "env", name: "__stack_pointer", ty: Global(GlobalType { content_type: I32, mutable: true, shared: false }) }
       | 0f 5f 5f 73
       | 74 61 63 6b
       | 5f 70 6f 69
       | 6e 74 65 72
       | 03 7f 01   
  0x5e | 03 65 6e 76 | import [func 0] Import { module: "env", name: "_ZN3std2rt19lang_start_internal17h8f61396649e22e0eE", ty: Func(2) }
       | 33 5f 5a 4e
       | 33 73 74 64
       | 32 72 74 31
       | 39 6c 61 6e
       | 67 5f 73 74
       | 61 72 74 5f
       | 69 6e 74 65
       | 72 6e 61 6c
       | 31 37 68 38
       | 66 36 31 33
       | 39 36 36 34
       | 39 65 32 32
       | 65 30 65 45
       | 00 02      
  0x98 | 03 65 6e 76 | import [table 0] Import { module: "env", name: "__indirect_function_table", ty: Table(TableType { element_type: funcref, table64: false, initial: 4, maximum: None, shared: false }) }
       | 19 5f 5f 69
       | 6e 64 69 72
       | 65 63 74 5f
       | 66 75 6e 63
       | 74 69 6f 6e
       | 5f 74 61 62
       | 6c 65 01 70
       | 00 04      
  0xba | 03 0b       | func section
  0xbc | 0a          | 10 count
  0xbd | 00          | [func 1] type 0
  0xbe | 00          | [func 2] type 0
  0xbf | 01          | [func 3] type 1
  0xc0 | 03          | [func 4] type 3
  0xc1 | 04          | [func 5] type 4
  0xc2 | 03          | [func 6] type 3
  0xc3 | 03          | [func 7] type 3
  0xc4 | 00          | [func 8] type 0
  0xc5 | 05          | [func 9] type 5
  0xc6 | 04          | [func 10] type 4
  0xc7 | 09 0a       | element section
  0xc9 | 01          | 1 count
  0xca | 00          | element table[None]
  0xcb | 41 01       | i32_const value:1
  0xcd | 0b          | end
  0xce | 04          | 4 items [indices]
  0xcf | 09          | item 9
  0xd0 | 08          | item 8
  0xd1 | 06          | item 6
  0xd2 | 04          | item 4
  0xd3 | 0a af 03    | code section
  0xd6 | 0a          | 10 count
============== func 1 ====================
  0xd7 | 07          | size of function
  0xd8 | 00          | 0 local blocks
  0xd9 | 20 00       | local_get local_index:0
  0xdb | 10 02       | call function_index:2
  0xdd | 0f          | return
  0xde | 0b          | end
============== func 2 ====================
  0xdf | 2c          | size of function
  0xe0 | 01          | 1 local blocks
  0xe1 | 05 7f       | 5 locals of type I32
  0xe3 | 23 00       | global_get global_index:0
  0xe5 | 21 01       | local_set local_index:1
  0xe7 | 41 10       | i32_const value:16
  0xe9 | 21 02       | local_set local_index:2
  0xeb | 20 01       | local_get local_index:1
  0xed | 20 02       | local_get local_index:2
  0xef | 6b          | i32_sub
  0xf0 | 21 03       | local_set local_index:3
  0xf2 | 20 03       | local_get local_index:3
  0xf4 | 24 00       | global_set global_index:0
  0xf6 | 20 00       | local_get local_index:0
  0xf8 | 11 05 00    | call_indirect type_index:5 table_index:0
  0xfb | 41 10       | i32_const value:16
  0xfd | 21 04       | local_set local_index:4
  0xff | 20 03       | local_get local_index:3
 0x101 | 20 04       | local_get local_index:4
 0x103 | 6a          | i32_add
 0x104 | 21 05       | local_set local_index:5
 0x106 | 20 05       | local_get local_index:5
 0x108 | 24 00       | global_set global_index:0
 0x10a | 0f          | return
 0x10b | 0b          | end
============== func 3 ====================
 0x10c | 5f          | size of function
 0x10d | 01          | 1 local blocks
 0x10e | 0b 7f       | 11 locals of type I32
 0x110 | 23 00       | global_get global_index:0
 0x112 | 21 04       | local_set local_index:4
 0x114 | 41 10       | i32_const value:16
 0x116 | 21 05       | local_set local_index:5
 0x118 | 20 04       | local_get local_index:4
 0x11a | 20 05       | local_get local_index:5
 0x11c | 6b          | i32_sub
 0x11d | 21 06       | local_set local_index:6
 0x11f | 20 06       | local_get local_index:6
 0x121 | 24 00       | global_set global_index:0
 0x123 | 20 06       | local_get local_index:6
 0x125 | 20 00       | local_get local_index:0
 0x127 | 36 02 0c    | i32_store memarg:MemArg { align: 2, max_align: 2, offset: 12, memory: 0 }
 0x12a | 41 0c       | i32_const value:12
 0x12c | 21 07       | local_set local_index:7
 0x12e | 20 06       | local_get local_index:6
 0x130 | 20 07       | local_get local_index:7
 0x132 | 6a          | i32_add
 0x133 | 21 08       | local_set local_index:8
 0x135 | 20 08       | local_get local_index:8
 0x137 | 21 09       | local_set local_index:9
 0x139 | 41 00       | i32_const value:0
 0x13b | 21 0a       | local_set local_index:10
 0x13d | 20 09       | local_get local_index:9
 0x13f | 20 0a       | local_get local_index:10
 0x141 | 20 01       | local_get local_index:1
 0x143 | 20 02       | local_get local_index:2
 0x145 | 20 03       | local_get local_index:3
 0x147 | 10 00       | call function_index:0
 0x149 | 21 0b       | local_set local_index:11
 0x14b | 20 06       | local_get local_index:6
 0x14d | 20 0b       | local_get local_index:11
 0x14f | 36 02 08    | i32_store memarg:MemArg { align: 2, max_align: 2, offset: 8, memory: 0 }
 0x152 | 20 06       | local_get local_index:6
 0x154 | 28 02 08    | i32_load memarg:MemArg { align: 2, max_align: 2, offset: 8, memory: 0 }
 0x157 | 21 0c       | local_set local_index:12
 0x159 | 41 10       | i32_const value:16
 0x15b | 21 0d       | local_set local_index:13
 0x15d | 20 06       | local_get local_index:6
 0x15f | 20 0d       | local_get local_index:13
 0x161 | 6a          | i32_add
 0x162 | 21 0e       | local_set local_index:14
 0x164 | 20 0e       | local_get local_index:14
 0x166 | 24 00       | global_set global_index:0
 0x168 | 20 0c       | local_get local_index:12
 0x16a | 0f          | return
 0x16b | 0b          | end
============== func 4 ====================
 0x16c | 5c          | size of function
 0x16d | 01          | 1 local blocks
 0x16e | 0c 7f       | 12 locals of type I32
 0x170 | 23 00       | global_get global_index:0
 0x172 | 21 01       | local_set local_index:1
 0x174 | 41 10       | i32_const value:16
 0x176 | 21 02       | local_set local_index:2
 0x178 | 20 01       | local_get local_index:1
 0x17a | 20 02       | local_get local_index:2
 0x17c | 6b          | i32_sub
 0x17d | 21 03       | local_set local_index:3
 0x17f | 20 03       | local_get local_index:3
 0x181 | 24 00       | global_set global_index:0
 0x183 | 20 00       | local_get local_index:0
 0x185 | 28 02 00    | i32_load memarg:MemArg { align: 2, max_align: 2, offset: 0, memory: 0 }
 0x188 | 21 04       | local_set local_index:4
 0x18a | 20 04       | local_get local_index:4
 0x18c | 10 01       | call function_index:1
 0x18e | 10 05       | call function_index:5
 0x190 | 21 05       | local_set local_index:5
 0x192 | 41 01       | i32_const value:1
 0x194 | 21 06       | local_set local_index:6
 0x196 | 20 05       | local_get local_index:5
 0x198 | 20 06       | local_get local_index:6
 0x19a | 71          | i32_and
 0x19b | 21 07       | local_set local_index:7
 0x19d | 20 03       | local_get local_index:3
 0x19f | 20 07       | local_get local_index:7
 0x1a1 | 3a 00 0f    | i32_store8 memarg:MemArg { align: 0, max_align: 0, offset: 15, memory: 0 }
 0x1a4 | 20 03       | local_get local_index:3
 0x1a6 | 2d 00 0f    | i32_load8_u memarg:MemArg { align: 0, max_align: 0, offset: 15, memory: 0 }
 0x1a9 | 21 08       | local_set local_index:8
 0x1ab | 41 01       | i32_const value:1
 0x1ad | 21 09       | local_set local_index:9
 0x1af | 20 08       | local_get local_index:8
 0x1b1 | 20 09       | local_get local_index:9
 0x1b3 | 71          | i32_and
 0x1b4 | 21 0a       | local_set local_index:10
 0x1b6 | 41 10       | i32_const value:16
 0x1b8 | 21 0b       | local_set local_index:11
 0x1ba | 20 03       | local_get local_index:3
 0x1bc | 20 0b       | local_get local_index:11
 0x1be | 6a          | i32_add
 0x1bf | 21 0c       | local_set local_index:12
 0x1c1 | 20 0c       | local_get local_index:12
 0x1c3 | 24 00       | global_set global_index:0
 0x1c5 | 20 0a       | local_get local_index:10
 0x1c7 | 0f          | return
 0x1c8 | 0b          | end
============== func 5 ====================
 0x1c9 | 16          | size of function
 0x1ca | 01          | 1 local blocks
 0x1cb | 03 7f       | 3 locals of type I32
 0x1cd | 41 00       | i32_const value:0
 0x1cf | 21 00       | local_set local_index:0
 0x1d1 | 41 01       | i32_const value:1
 0x1d3 | 21 01       | local_set local_index:1
 0x1d5 | 20 00       | local_get local_index:0
 0x1d7 | 20 01       | local_get local_index:1
 0x1d9 | 71          | i32_and
 0x1da | 21 02       | local_set local_index:2
 0x1dc | 20 02       | local_get local_index:2
 0x1de | 0f          | return
 0x1df | 0b          | end
============== func 6 ====================
 0x1e0 | 36          | size of function
 0x1e1 | 01          | 1 local blocks
 0x1e2 | 07 7f       | 7 locals of type I32
 0x1e4 | 23 00       | global_get global_index:0
 0x1e6 | 21 01       | local_set local_index:1
 0x1e8 | 41 10       | i32_const value:16
 0x1ea | 21 02       | local_set local_index:2
 0x1ec | 20 01       | local_get local_index:1
 0x1ee | 20 02       | local_get local_index:2
 0x1f0 | 6b          | i32_sub
 0x1f1 | 21 03       | local_set local_index:3
 0x1f3 | 20 03       | local_get local_index:3
 0x1f5 | 24 00       | global_set global_index:0
 0x1f7 | 20 00       | local_get local_index:0
 0x1f9 | 28 02 00    | i32_load memarg:MemArg { align: 2, max_align: 2, offset: 0, memory: 0 }
 0x1fc | 21 04       | local_set local_index:4
 0x1fe | 20 04       | local_get local_index:4
 0x200 | 10 07       | call function_index:7
 0x202 | 21 05       | local_set local_index:5
 0x204 | 41 10       | i32_const value:16
 0x206 | 21 06       | local_set local_index:6
 0x208 | 20 03       | local_get local_index:3
 0x20a | 20 06       | local_get local_index:6
 0x20c | 6a          | i32_add
 0x20d | 21 07       | local_set local_index:7
 0x20f | 20 07       | local_get local_index:7
 0x211 | 24 00       | global_set global_index:0
 0x213 | 20 05       | local_get local_index:5
 0x215 | 0f          | return
 0x216 | 0b          | end
============== func 7 ====================
 0x217 | 45          | size of function
 0x218 | 01          | 1 local blocks
 0x219 | 09 7f       | 9 locals of type I32
 0x21b | 23 00       | global_get global_index:0
 0x21d | 21 01       | local_set local_index:1
 0x21f | 41 10       | i32_const value:16
 0x221 | 21 02       | local_set local_index:2
 0x223 | 20 01       | local_get local_index:1
 0x225 | 20 02       | local_get local_index:2
 0x227 | 6b          | i32_sub
 0x228 | 21 03       | local_set local_index:3
 0x22a | 20 03       | local_get local_index:3
 0x22c | 24 00       | global_set global_index:0
 0x22e | 20 03       | local_get local_index:3
 0x230 | 20 00       | local_get local_index:0
 0x232 | 36 02 08    | i32_store memarg:MemArg { align: 2, max_align: 2, offset: 8, memory: 0 }
 0x235 | 41 08       | i32_const value:8
 0x237 | 21 04       | local_set local_index:4
 0x239 | 20 03       | local_get local_index:3
 0x23b | 20 04       | local_get local_index:4
 0x23d | 6a          | i32_add
 0x23e | 21 05       | local_set local_index:5
 0x240 | 20 05       | local_get local_index:5
 0x242 | 21 06       | local_set local_index:6
 0x244 | 20 06       | local_get local_index:6
 0x246 | 10 04       | call function_index:4
 0x248 | 21 07       | local_set local_index:7
 0x24a | 41 10       | i32_const value:16
 0x24c | 21 08       | local_set local_index:8
 0x24e | 20 03       | local_get local_index:3
 0x250 | 20 08       | local_get local_index:8
 0x252 | 6a          | i32_add
 0x253 | 21 09       | local_set local_index:9
 0x255 | 20 09       | local_get local_index:9
 0x257 | 24 00       | global_set global_index:0
 0x259 | 20 07       | local_get local_index:7
 0x25b | 0f          | return
 0x25c | 0b          | end
============== func 8 ====================
 0x25d | 03          | size of function
 0x25e | 00          | 0 local blocks
 0x25f | 0f          | return
 0x260 | 0b          | end
============== func 9 ====================
 0x261 | 03          | size of function
 0x262 | 00          | 0 local blocks
 0x263 | 0f          | return
 0x264 | 0b          | end
============== func 10 ====================
 0x265 | 1f          | size of function
 0x266 | 01          | 1 local blocks
 0x267 | 04 7f       | 4 locals of type I32
 0x269 | 41 01       | i32_const value:1
 0x26b | 21 00       | local_set local_index:0
 0x26d | 41 00       | i32_const value:0
 0x26f | 21 01       | local_set local_index:1
 0x271 | 41 00       | i32_const value:0
 0x273 | 21 02       | local_set local_index:2
 0x275 | 20 00       | local_get local_index:0
 0x277 | 20 01       | local_get local_index:1
 0x279 | 20 01       | local_get local_index:1
 0x27b | 20 02       | local_get local_index:2
 0x27d | 10 03       | call function_index:3
 0x27f | 21 03       | local_set local_index:3
 0x281 | 20 03       | local_get local_index:3
 0x283 | 0f          | return
 0x284 | 0b          | end
 0x285 | 0b 1e       | data section
 0x287 | 01          | 1 count
 0x288 | 00          | data memory[0]
 0x289 | 41 00       | i32_const value:0
 0x28b | 0b          | end
 0x28c |-------------| ... 24 bytes of data
 0x2a5 | 00 f7 05    | custom section
 0x2a8 | 07 6c 69 6e | name: "linking"
       | 6b 69 6e 67
 0x2b0 | 02          | linking version 2
 0x2b1 | 08 c9 85 80 | symbol table section
       | 80 00      
 0x2b7 | 0d          | 13 count
 0x2b8 | 00 02 01 4f | Func { flags: SymbolFlags(BINDING_LOCAL), index: 1, name: Some("_ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hf1ecc3b2b910465aE") }
       | 5f 5a 4e 33
       | 73 74 64 31
       | 30 73 79 73
       | 5f 63 6f 6d
       | 6d 6f 6e 39
       | 62 61 63 6b
       | 74 72 61 63
       | 65 32 38 5f
       | 5f 72 75 73
       | 74 5f 62 65
       | 67 69 6e 5f
       | 73 68 6f 72
       | 74 5f 62 61
       | 63 6b 74 72
       | 61 63 65 31
       | 37 68 66 31
       | 65 63 63 33
       | 62 32 62 39
       | 31 30 34 36
       | 35 61 45   
 0x30b | 00 02 02 3a | Func { flags: SymbolFlags(BINDING_LOCAL), index: 2, name: Some("_ZN4core3ops8function6FnOnce9call_once17h06fc313c2ecf3d24E") }
       | 5f 5a 4e 34
       | 63 6f 72 65
       | 33 6f 70 73
       | 38 66 75 6e
       | 63 74 69 6f
       | 6e 36 46 6e
       | 4f 6e 63 65
       | 39 63 61 6c
       | 6c 5f 6f 6e
       | 63 65 31 37
       | 68 30 36 66
       | 63 33 31 33
       | 63 32 65 63
       | 66 33 64 32
       | 34 45      
 0x349 | 00 04 03 2a | Func { flags: SymbolFlags(VISIBILITY_HIDDEN), index: 3, name: Some("_ZN3std2rt10lang_start17h385f18abde4350daE") }
       | 5f 5a 4e 33
       | 73 74 64 32
       | 72 74 31 30
       | 6c 61 6e 67
       | 5f 73 74 61
       | 72 74 31 37
       | 68 33 38 35
       | 66 31 38 61
       | 62 64 65 34
       | 33 35 30 64
       | 61 45      
 0x377 | 02 10 00    | Global { flags: SymbolFlags(UNDEFINED), index: 0, name: None }
 0x37a | 01 02 0d 2e | Data { flags: SymbolFlags(BINDING_LOCAL), name: ".L__unnamed_1", symbol: Some(DefinedDataSymbol { index: 0, offset: 0, size: 24 }) }
       | 4c 5f 5f 75
       | 6e 6e 61 6d
       | 65 64 5f 31
       | 00 00 18   
 0x38d | 00 10 00    | Func { flags: SymbolFlags(UNDEFINED), index: 0, name: None }
 0x390 | 00 02 04 48 | Func { flags: SymbolFlags(BINDING_LOCAL), index: 4, name: Some("_ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h24681ec0ade90745E") }
       | 5f 5a 4e 33
       | 73 74 64 32
       | 72 74 31 30
       | 6c 61 6e 67
       | 5f 73 74 61
       | 72 74 32 38
       | 5f 24 75 37
       | 62 24 24 75
       | 37 62 24 63
       | 6c 6f 73 75
       | 72 65 24 75
       | 37 64 24 24
       | 75 37 64 24
       | 31 37 68 32
       | 34 36 38 31
       | 65 63 30 61
       | 64 65 39 30
       | 37 34 35 45
 0x3dc | 00 02 05 56 | Func { flags: SymbolFlags(BINDING_LOCAL), index: 5, name: Some("_ZN54_$LT$$LP$$RP$$u20$as$u20$std..process..Termination$GT$6report17haa5bf2f79896d941E") }
       | 5f 5a 4e 35
       | 34 5f 24 4c
       | 54 24 24 4c
       | 50 24 24 52
       | 50 24 24 75
       | 32 30 24 61
       | 73 24 75 32
       | 30 24 73 74
       | 64 2e 2e 70
       | 72 6f 63 65
       | 73 73 2e 2e
       | 54 65 72 6d
       | 69 6e 61 74
       | 69 6f 6e 24
       | 47 54 24 36
       | 72 65 70 6f
       | 72 74 31 37
       | 68 61 61 35
       | 62 66 32 66
       | 37 39 38 39
       | 36 64 39 34
       | 31 45      
 0x436 | 00 02 06 5a | Func { flags: SymbolFlags(BINDING_LOCAL), index: 6, name: Some("_ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17hc804a9e31dd3115cE") }
       | 5f 5a 4e 34
       | 63 6f 72 65
       | 33 6f 70 73
       | 38 66 75 6e
       | 63 74 69 6f
       | 6e 36 46 6e
       | 4f 6e 63 65
       | 34 30 63 61
       | 6c 6c 5f 6f
       | 6e 63 65 24
       | 75 37 62 24
       | 24 75 37 62
       | 24 76 74 61
       | 62 6c 65 2e
       | 73 68 69 6d
       | 24 75 37 64
       | 24 24 75 37
       | 64 24 31 37
       | 68 63 38 30
       | 34 61 39 65
       | 33 31 64 64
       | 33 31 31 35
       | 63 45      
 0x494 | 00 02 07 3a | Func { flags: SymbolFlags(BINDING_LOCAL), index: 7, name: Some("_ZN4core3ops8function6FnOnce9call_once17h20fe7bf2b7692f9bE") }
       | 5f 5a 4e 34
       | 63 6f 72 65
       | 33 6f 70 73
       | 38 66 75 6e
       | 63 74 69 6f
       | 6e 36 46 6e
       | 4f 6e 63 65
       | 39 63 61 6c
       | 6c 5f 6f 6e
       | 63 65 31 37
       | 68 32 30 66
       | 65 37 62 66
       | 32 62 37 36
       | 39 32 66 39
       | 62 45      
 0x4d2 | 00 02 08 77 | Func { flags: SymbolFlags(BINDING_LOCAL), index: 8, name: Some("_ZN4core3ptr85drop_in_place$LT$std..rt..lang_start$LT$$LP$$RP$$GT$..$u7b$$u7b$closure$u7d$$u7d$$GT$17h26d303f198cad6c2E") }
       | 5f 5a 4e 34
       | 63 6f 72 65
       | 33 70 74 72
       | 38 35 64 72
       | 6f 70 5f 69
       | 6e 5f 70 6c
       | 61 63 65 24
       | 4c 54 24 73
       | 74 64 2e 2e
       | 72 74 2e 2e
       | 6c 61 6e 67
       | 5f 73 74 61
       | 72 74 24 4c
       | 54 24 24 4c
       | 50 24 24 52
       | 50 24 24 47
       | 54 24 2e 2e
       | 24 75 37 62
       | 24 24 75 37
       | 62 24 63 6c
       | 6f 73 75 72
       | 65 24 75 37
       | 64 24 24 75
       | 37 64 24 24
       | 47 54 24 31
       | 37 68 32 36
       | 64 33 30 33
       | 66 31 39 38
       | 63 61 64 36
       | 63 32 45   
 0x54d | 00 02 09 20 | Func { flags: SymbolFlags(BINDING_LOCAL), index: 9, name: Some("_ZN3foo4main17h694cf023eeafda77E") }
       | 5f 5a 4e 33
       | 66 6f 6f 34
       | 6d 61 69 6e
       | 31 37 68 36
       | 39 34 63 66
       | 30 32 33 65
       | 65 61 66 64
       | 61 37 37 45
 0x571 | 00 04 0a 0b | Func { flags: SymbolFlags(VISIBILITY_HIDDEN), index: 10, name: Some("__main_void") }
       | 5f 5f 6d 61
       | 69 6e 5f 76
       | 6f 69 64   
 0x580 | 05 99 80 80 | segment info section
       | 80 00      
 0x586 | 01          | 1 count
 0x587 | 15 2e 72 6f | Segment { name: ".rodata..L__unnamed_1", alignment: 2, flags: SegmentFlags(0x0) }
       | 64 61 74 61
       | 2e 2e 4c 5f
       | 5f 75 6e 6e
       | 61 6d 65 64
       | 5f 31 02 00
 0x59f | 00 6b       | custom section
 0x5a1 | 0a 72 65 6c | name: "reloc.CODE"
       | 6f 63 2e 43
       | 4f 44 45   
 0x5ac | 05          | section 5
 0x5ad | 19          | 25 count
 0x5ae | 00 06 01    | RelocationEntry { ty: FunctionIndexLeb, offset: 6, index: 1, addend: 0 }
 0x5b1 | 07 12 03    | RelocationEntry { ty: GlobalIndexLeb, offset: 18, index: 3, addend: 0 }
 0x5b4 | 07 27 03    | RelocationEntry { ty: GlobalIndexLeb, offset: 39, index: 3, addend: 0 }
 0x5b7 | 06 2f 05    | RelocationEntry { ty: TypeIndexLeb, offset: 47, index: 5, addend: 0 }
 0x5ba | 07 43 03    | RelocationEntry { ty: GlobalIndexLeb, offset: 67, index: 3, addend: 0 }
 0x5bd | 07 4f 03    | RelocationEntry { ty: GlobalIndexLeb, offset: 79, index: 3, addend: 0 }
 0x5c0 | 07 64 03    | RelocationEntry { ty: GlobalIndexLeb, offset: 100, index: 3, addend: 0 }
 0x5c3 | 04 80 01 04 | RelocationEntry { ty: MemoryAddrSleb, offset: 128, index: 4, addend: 0 }
       | 00         
 0x5c8 | 00 92 01 05 | RelocationEntry { ty: FunctionIndexLeb, offset: 146, index: 5, addend: 0 }
 0x5cc | 07 b5 01 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 181, index: 3, addend: 0 }
 0x5d0 | 07 c3 01 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 195, index: 3, addend: 0 }
 0x5d4 | 07 d8 01 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 216, index: 3, addend: 0 }
 0x5d8 | 00 e7 01 00 | RelocationEntry { ty: FunctionIndexLeb, offset: 231, index: 0, addend: 0 }
 0x5dc | 00 ed 01 07 | RelocationEntry { ty: FunctionIndexLeb, offset: 237, index: 7, addend: 0 }
 0x5e0 | 07 a6 02 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 294, index: 3, addend: 0 }
 0x5e4 | 07 cb 02 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 331, index: 3, addend: 0 }
 0x5e8 | 07 e0 02 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 352, index: 3, addend: 0 }
 0x5ec | 00 ef 02 09 | RelocationEntry { ty: FunctionIndexLeb, offset: 367, index: 9, addend: 0 }
 0x5f0 | 07 84 03 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 388, index: 3, addend: 0 }
 0x5f4 | 07 92 03 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 402, index: 3, addend: 0 }
 0x5f8 | 07 a7 03 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 423, index: 3, addend: 0 }
 0x5fc | 00 c5 03 06 | RelocationEntry { ty: FunctionIndexLeb, offset: 453, index: 6, addend: 0 }
 0x600 | 07 da 03 03 | RelocationEntry { ty: GlobalIndexLeb, offset: 474, index: 3, addend: 0 }
 0x604 | 01 f0 03 0b | RelocationEntry { ty: TableIndexSleb, offset: 496, index: 11, addend: 0 }
 0x608 | 00 88 04 02 | RelocationEntry { ty: FunctionIndexLeb, offset: 520, index: 2, addend: 0 }
 0x60c | 00 19       | custom section
 0x60e | 0a 72 65 6c | name: "reloc.DATA"
       | 6f 63 2e 44
       | 41 54 41   
 0x619 | 06          | section 6
 0x61a | 04          | 4 count
 0x61b | 02 06 0a    | RelocationEntry { ty: TableIndexI32, offset: 6, index: 10, addend: 0 }
 0x61e | 02 12 08    | RelocationEntry { ty: TableIndexI32, offset: 18, index: 8, addend: 0 }
 0x621 | 02 16 06    | RelocationEntry { ty: TableIndexI32, offset: 22, index: 6, addend: 0 }
 0x624 | 02 1a 06    | RelocationEntry { ty: TableIndexI32, offset: 26, index: 6, addend: 0 }
 0x627 | 00 2c       | custom section
 0x629 | 0f 74 61 72 | name: "target_features"
       | 67 65 74 5f
       | 66 65 61 74
       | 75 72 65 73
 0x639 |-------------| ... 28 bytes of data
 0x655 | 00 3d       | custom section
 0x657 | 09 70 72 6f | name: "producers"
       | 64 75 63 65
       | 72 73      
 0x661 | 01          | 1 count
 0x662 | 0c 70 72 6f | field: processed-by
       | 63 65 73 73
       | 65 64 2d 62
       | 79         
 0x66f | 01          | 1 count
 0x670 | 05 72 75 73 | ProducersFieldValue { name: "rustc", version: "1.78.0 (9b00956e5 2024-04-29)" }
       | 74 63 1d 31
       | 2e 37 38 2e
       | 30 20 28 39
       | 62 30 30 39
       | 35 36 65 35
       | 20 32 30 32
       | 34 2d 30 34
       | 2d 32 39 29