-
Notifications
You must be signed in to change notification settings - Fork 148
/
Copy pathdebug_macho.htm
1180 lines (573 loc) · 62.8 KB
/
debug_macho.htm
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
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../assets/site.css" rel="stylesheet">
<title>debug/macho</title>
<meta name="twitter:title" content="Package macho">
<meta property="og:title" content="Package macho">
<meta name="description" content="Package macho implements access to Mach-O object files.">
<meta name="twitter:description" content="Package macho implements access to Mach-O object files.">
<meta property="og:description" content="Package macho implements access to Mach-O object files.">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@golang">
</head>
<body>
<div class="container">
<h2 id="pkg-overview">package macho</h2>
<p><code>import "debug/macho"</code>
<p>
Package macho implements access to Mach-O object files.</p>
<h3 id="pkg-index" class="section-header">Index <a class="permalink" href="#pkg-index">¶</a></h3>
<ul class="list-unstyled">
<li><a href="#pkg-constants">Constants</a></li>
<li><a href="#pkg-variables">Variables</a></li>
<li><a href="#Cpu">type Cpu</a></li>
<ul>
<li><a href="#Cpu.GoString">func (i Cpu) GoString() string</a></li><li><a href="#Cpu.String">func (i Cpu) String() string</a></li>
</ul>
<li><a href="#Dylib">type Dylib</a></li>
<li><a href="#DylibCmd">type DylibCmd</a></li>
<li><a href="#Dysymtab">type Dysymtab</a></li>
<li><a href="#DysymtabCmd">type DysymtabCmd</a></li>
<li><a href="#FatArch">type FatArch</a></li>
<li><a href="#FatArchHeader">type FatArchHeader</a></li>
<li><a href="#FatFile">type FatFile</a></li>
<ul>
<li><a href="#NewFatFile">func NewFatFile(r io.ReaderAt) (*FatFile, error)</a></li><li><a href="#OpenFat">func OpenFat(name string) (*FatFile, error)</a></li>
<li><a href="#FatFile.Close">func (ff *FatFile) Close() error</a></li>
</ul>
<li><a href="#File">type File</a></li>
<ul>
<li><a href="#NewFile">func NewFile(r io.ReaderAt) (*File, error)</a></li><li><a href="#Open">func Open(name string) (*File, error)</a></li>
<li><a href="#File.Close">func (f *File) Close() error</a></li><li><a href="#File.DWARF">func (f *File) DWARF() (*dwarf.Data, error)</a></li><li><a href="#File.ImportedLibraries">func (f *File) ImportedLibraries() ([]string, error)</a></li><li><a href="#File.ImportedSymbols">func (f *File) ImportedSymbols() ([]string, error)</a></li><li><a href="#File.Section">func (f *File) Section(name string) *Section</a></li><li><a href="#File.Segment">func (f *File) Segment(name string) *Segment</a></li>
</ul>
<li><a href="#FileHeader">type FileHeader</a></li>
<li><a href="#FormatError">type FormatError</a></li>
<ul>
<li><a href="#FormatError.Error">func (e *FormatError) Error() string</a></li>
</ul>
<li><a href="#Load">type Load</a></li>
<li><a href="#LoadBytes">type LoadBytes</a></li>
<ul>
<li><a href="#LoadBytes.Raw">func (b LoadBytes) Raw() []byte</a></li>
</ul>
<li><a href="#LoadCmd">type LoadCmd</a></li>
<ul>
<li><a href="#LoadCmd.GoString">func (i LoadCmd) GoString() string</a></li><li><a href="#LoadCmd.String">func (i LoadCmd) String() string</a></li>
</ul>
<li><a href="#Nlist32">type Nlist32</a></li>
<li><a href="#Nlist64">type Nlist64</a></li>
<li><a href="#Regs386">type Regs386</a></li>
<li><a href="#RegsAMD64">type RegsAMD64</a></li>
<li><a href="#Section">type Section</a></li>
<ul>
<li><a href="#Section.Data">func (s *Section) Data() ([]byte, error)</a></li><li><a href="#Section.Open">func (s *Section) Open() io.ReadSeeker</a></li>
</ul>
<li><a href="#Section32">type Section32</a></li>
<li><a href="#Section64">type Section64</a></li>
<li><a href="#SectionHeader">type SectionHeader</a></li>
<li><a href="#Segment">type Segment</a></li>
<ul>
<li><a href="#Segment.Data">func (s *Segment) Data() ([]byte, error)</a></li><li><a href="#Segment.Open">func (s *Segment) Open() io.ReadSeeker</a></li>
</ul>
<li><a href="#Segment32">type Segment32</a></li>
<li><a href="#Segment64">type Segment64</a></li>
<li><a href="#SegmentHeader">type SegmentHeader</a></li>
<li><a href="#Symbol">type Symbol</a></li>
<li><a href="#Symtab">type Symtab</a></li>
<li><a href="#SymtabCmd">type SymtabCmd</a></li>
<li><a href="#Thread">type Thread</a></li>
<li><a href="#Type">type Type</a></li>
</ul>
<span id="pkg-examples"></span>
<h4 id="pkg-files">
<a href="https://github.com/golang/go/blob/master/src/debug/macho/">Package Files</a>
<a class="permalink" href="#pkg-files">¶</a>
</h4>
<p><a href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go">fat.go</a> <a href="https://github.com/golang/go/blob/master/src/debug/macho/file.go">file.go</a> <a href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go">macho.go</a> </p>
<h3 id="pkg-constants">Constants <a class="permalink" href="#pkg-constants">¶</a></h3>
<div class="decl" data-kind="c"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L28">❖</a><pre>const (
<span id="Magic32">Magic32</span> <a href="/builtin#uint32">uint32</a> = 0xfeedface
<span id="Magic64">Magic64</span> <a href="/builtin#uint32">uint32</a> = 0xfeedfacf
<span id="MagicFat">MagicFat</span> <a href="/builtin#uint32">uint32</a> = 0xcafebabe
)</pre></div>
<h3 id="pkg-variables">Variables <a class="permalink" href="#pkg-variables">¶</a></h3>
<div class="decl" data-kind="v"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L40">❖</a><pre>var <span id="ErrNotFat">ErrNotFat</span> = &<a href="#FormatError">FormatError</a>{0, "not a fat Mach-O file", <a href="/builtin#nil">nil</a>}</pre></div><p>
ErrNotFat is returned from NewFatFile or OpenFat when the file is not a
universal binary but may be a thin binary, based on its magic number.
</p>
<h3 id="Cpu" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L45">Cpu</a> <a class="permalink" href="#Cpu">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Cpu&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L45">❖</a><pre>type Cpu <a href="/builtin#uint32">uint32</a></pre></div><p>
A Cpu is a Mach-O cpu type.
</p>
<div class="decl" data-kind="c"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L49">❖</a><pre>const (
<span id="Cpu386">Cpu386</span> <a href="#Cpu">Cpu</a> = 7
<span id="CpuAmd64">CpuAmd64</span> <a href="#Cpu">Cpu</a> = <a href="#Cpu386">Cpu386</a> | cpuArch64
<span id="CpuArm">CpuArm</span> <a href="#Cpu">Cpu</a> = 12
<span id="CpuPpc">CpuPpc</span> <a href="#Cpu">Cpu</a> = 18
<span id="CpuPpc64">CpuPpc64</span> <a href="#Cpu">Cpu</a> = <a href="#CpuPpc">CpuPpc</a> | cpuArch64
)</pre></div>
<h4 id="Cpu.GoString" data-kind="m">func (Cpu) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L66">GoString</a> <a class="permalink" href="#Cpu.GoString">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=Cpu%2FGoString&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L66">❖</a><pre>func (i <a href="#Cpu">Cpu</a>) GoString() <a href="/builtin#string">string</a></pre></div>
<h4 id="Cpu.String" data-kind="m">func (Cpu) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L65">String</a> <a class="permalink" href="#Cpu.String">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=Cpu%2FString&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L65">❖</a><pre>func (i <a href="#Cpu">Cpu</a>) String() <a href="/builtin#string">string</a></pre></div>
<h3 id="Dylib" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L124">Dylib</a> <a class="permalink" href="#Dylib">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Dylib&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L124">❖</a><pre>type Dylib struct {
<a href="#LoadBytes">LoadBytes</a>
<span id="Dylib.Name">Name</span> <a href="/builtin#string">string</a>
<span id="Dylib.Time">Time</span> <a href="/builtin#uint32">uint32</a>
<span id="Dylib.CurrentVersion">CurrentVersion</span> <a href="/builtin#uint32">uint32</a>
<span id="Dylib.CompatVersion">CompatVersion</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A Dylib represents a Mach-O load dynamic library command.
</p>
<h3 id="DylibCmd" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L124">DylibCmd</a> <a class="permalink" href="#DylibCmd">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=DylibCmd&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L124">❖</a><pre>type DylibCmd struct {
<span id="DylibCmd.Cmd">Cmd</span> <a href="#LoadCmd">LoadCmd</a>
<span id="DylibCmd.Len">Len</span> <a href="/builtin#uint32">uint32</a>
<span id="DylibCmd.Name">Name</span> <a href="/builtin#uint32">uint32</a>
<span id="DylibCmd.Time">Time</span> <a href="/builtin#uint32">uint32</a>
<span id="DylibCmd.CurrentVersion">CurrentVersion</span> <a href="/builtin#uint32">uint32</a>
<span id="DylibCmd.CompatVersion">CompatVersion</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A DylibCmd is a Mach-O load dynamic library command.
</p>
<h3 id="Dysymtab" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L140">Dysymtab</a> <a class="permalink" href="#Dysymtab">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Dysymtab&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L140">❖</a><pre>type Dysymtab struct {
<a href="#LoadBytes">LoadBytes</a>
<a href="#DysymtabCmd">DysymtabCmd</a>
<span id="Dysymtab.IndirectSyms">IndirectSyms</span> []<a href="/builtin#uint32">uint32</a> <span class="com">// indices into Symtab.Syms</span>
}</pre></div><p>
A Dysymtab represents a Mach-O dynamic symbol table command.
</p>
<h3 id="DysymtabCmd" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L175">DysymtabCmd</a> <a class="permalink" href="#DysymtabCmd">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=DysymtabCmd&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L175">❖</a><pre>type DysymtabCmd struct {
<span id="DysymtabCmd.Cmd">Cmd</span> <a href="#LoadCmd">LoadCmd</a>
<span id="DysymtabCmd.Len">Len</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Ilocalsym">Ilocalsym</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nlocalsym">Nlocalsym</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Iextdefsym">Iextdefsym</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nextdefsym">Nextdefsym</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Iundefsym">Iundefsym</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nundefsym">Nundefsym</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Tocoffset">Tocoffset</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Ntoc">Ntoc</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Modtaboff">Modtaboff</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nmodtab">Nmodtab</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Extrefsymoff">Extrefsymoff</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nextrefsyms">Nextrefsyms</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Indirectsymoff">Indirectsymoff</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nindirectsyms">Nindirectsyms</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Extreloff">Extreloff</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nextrel">Nextrel</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Locreloff">Locreloff</span> <a href="/builtin#uint32">uint32</a>
<span id="DysymtabCmd.Nlocrel">Nlocrel</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A DysymtabCmd is a Mach-O dynamic symbol table command.
</p>
<h3 id="FatArch" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L33">FatArch</a> <a class="permalink" href="#FatArch">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=FatArch&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L33">❖</a><pre>type FatArch struct {
<a href="#FatArchHeader">FatArchHeader</a>
*<a href="#File">File</a>
}</pre></div><p>
A FatArch is a Mach-O File inside a FatFile.
</p>
<h3 id="FatArchHeader" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L22">FatArchHeader</a> <a class="permalink" href="#FatArchHeader">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=FatArchHeader&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L22">❖</a><pre>type FatArchHeader struct {
<span id="FatArchHeader.Cpu">Cpu</span> <a href="#Cpu">Cpu</a>
<span id="FatArchHeader.SubCpu">SubCpu</span> <a href="/builtin#uint32">uint32</a>
<span id="FatArchHeader.Offset">Offset</span> <a href="/builtin#uint32">uint32</a>
<span id="FatArchHeader.Size">Size</span> <a href="/builtin#uint32">uint32</a>
<span id="FatArchHeader.Align">Align</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A FatArchHeader represents a fat header for a specific image architecture.
</p>
<h3 id="FatFile" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L15">FatFile</a> <a class="permalink" href="#FatFile">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=FatFile&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L15">❖</a><pre>type FatFile struct {
<span id="FatFile.Magic">Magic</span> <a href="/builtin#uint32">uint32</a>
<span id="FatFile.Arches">Arches</span> []<a href="#FatArch">FatArch</a>
<span class="com">// contains filtered or unexported fields</span>
}</pre></div><p>
A FatFile is a Mach-O universal binary that contains at least one architecture.
</p>
<h4 id="NewFatFile" data-kind="f">func <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L45">NewFatFile</a> <a class="permalink" href="#NewFatFile">¶</a> <a class="uses" title="List Function Callers" href="https://sourcegraph.com/-/godoc/refs?def=NewFatFile&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L45">❖</a><pre>func NewFatFile(r <a href="/io">io</a>.<a href="/io#ReaderAt">ReaderAt</a>) (*<a href="#FatFile">FatFile</a>, <a href="/builtin#error">error</a>)</pre></div><p>
NewFatFile creates a new FatFile for accessing all the Mach-O images in a
universal binary. The Mach-O binary is expected to start at position 0 in
the ReaderAt.
</p>
<h4 id="OpenFat" data-kind="f">func <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L125">OpenFat</a> <a class="permalink" href="#OpenFat">¶</a> <a class="uses" title="List Function Callers" href="https://sourcegraph.com/-/godoc/refs?def=OpenFat&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L125">❖</a><pre>func OpenFat(name <a href="/builtin#string">string</a>) (*<a href="#FatFile">FatFile</a>, <a href="/builtin#error">error</a>)</pre></div><p>
OpenFat opens the named file using os.Open and prepares it for use as a Mach-O
universal binary.
</p>
<h4 id="FatFile.Close" data-kind="m">func (*FatFile) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L139">Close</a> <a class="permalink" href="#FatFile.Close">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=FatFile%2FClose&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/fat.go#L139">❖</a><pre>func (ff *<a href="#FatFile">FatFile</a>) Close() <a href="/builtin#error">error</a></pre></div>
<h3 id="File" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L20">File</a> <a class="permalink" href="#File">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=File&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L20">❖</a><pre>type File struct {
<a href="#FileHeader">FileHeader</a>
<span id="File.ByteOrder">ByteOrder</span> <a href="/encoding/binary">binary</a>.<a href="/encoding/binary#ByteOrder">ByteOrder</a>
<span id="File.Loads">Loads</span> []<a href="#Load">Load</a>
<span id="File.Sections">Sections</span> []*<a href="#Section">Section</a>
<span id="File.Symtab">Symtab</span> *<a href="#Symtab">Symtab</a>
<span id="File.Dysymtab">Dysymtab</span> *<a href="#Dysymtab">Dysymtab</a>
<span class="com">// contains filtered or unexported fields</span>
}</pre></div><p>
A File represents an open Mach-O file.
</p>
<h4 id="NewFile" data-kind="f">func <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L196">NewFile</a> <a class="permalink" href="#NewFile">¶</a> <a class="uses" title="List Function Callers" href="https://sourcegraph.com/-/godoc/refs?def=NewFile&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L196">❖</a><pre>func NewFile(r <a href="/io">io</a>.<a href="/io#ReaderAt">ReaderAt</a>) (*<a href="#File">File</a>, <a href="/builtin#error">error</a>)</pre></div><p>
NewFile creates a new File for accessing a Mach-O binary in an underlying reader.
The Mach-O binary is expected to start at position 0 in the ReaderAt.
</p>
<h4 id="Open" data-kind="f">func <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L168">Open</a> <a class="permalink" href="#Open">¶</a> <a class="uses" title="List Function Callers" href="https://sourcegraph.com/-/godoc/refs?def=Open&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L168">❖</a><pre>func Open(name <a href="/builtin#string">string</a>) (*<a href="#File">File</a>, <a href="/builtin#error">error</a>)</pre></div><p>
Open opens the named file using os.Open and prepares it for use as a Mach-O binary.
</p>
<h4 id="File.Close" data-kind="m">func (*File) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L185">Close</a> <a class="permalink" href="#File.Close">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=File%2FClose&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L185">❖</a><pre>func (f *<a href="#File">File</a>) Close() <a href="/builtin#error">error</a></pre></div><p>
Close closes the File.
If the File was created using NewFile directly instead of Open,
Close has no effect.
</p>
<h4 id="File.DWARF" data-kind="m">func (*File) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L473">DWARF</a> <a class="permalink" href="#File.DWARF">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=File%2FDWARF&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L473">❖</a><pre>func (f *<a href="#File">File</a>) DWARF() (*<a href="/debug/dwarf">dwarf</a>.<a href="/debug/dwarf#Data">Data</a>, <a href="/builtin#error">error</a>)</pre></div><p>
DWARF returns the DWARF debug information for the Mach-O file.
</p>
<h4 id="File.ImportedLibraries" data-kind="m">func (*File) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L516">ImportedLibraries</a> <a class="permalink" href="#File.ImportedLibraries">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=File%2FImportedLibraries&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L516">❖</a><pre>func (f *<a href="#File">File</a>) ImportedLibraries() ([]<a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)</pre></div><p>
ImportedLibraries returns the paths of all libraries
referred to by the binary f that are expected to be
linked with the binary at dynamic link time.
</p>
<h4 id="File.ImportedSymbols" data-kind="m">func (*File) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L499">ImportedSymbols</a> <a class="permalink" href="#File.ImportedSymbols">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=File%2FImportedSymbols&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L499">❖</a><pre>func (f *<a href="#File">File</a>) ImportedSymbols() ([]<a href="/builtin#string">string</a>, <a href="/builtin#error">error</a>)</pre></div><p>
ImportedSymbols returns the names of all symbols
referred to by the binary f that are expected to be
satisfied by other libraries at dynamic load time.
</p>
<h4 id="File.Section" data-kind="m">func (*File) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L463">Section</a> <a class="permalink" href="#File.Section">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=File%2FSection&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L463">❖</a><pre>func (f *<a href="#File">File</a>) Section(name <a href="/builtin#string">string</a>) *<a href="#Section">Section</a></pre></div><p>
Section returns the first section with the given name, or nil if no such
section exists.
</p>
<h4 id="File.Segment" data-kind="m">func (*File) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L452">Segment</a> <a class="permalink" href="#File.Segment">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=File%2FSegment&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L452">❖</a><pre>func (f *<a href="#File">File</a>) Segment(name <a href="/builtin#string">string</a>) *<a href="#Segment">Segment</a></pre></div><p>
Segment returns the first Segment with the given name, or nil if no such segment exists.
</p>
<h3 id="FileHeader" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L13">FileHeader</a> <a class="permalink" href="#FileHeader">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=FileHeader&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L13">❖</a><pre>type FileHeader struct {
<span id="FileHeader.Magic">Magic</span> <a href="/builtin#uint32">uint32</a>
<span id="FileHeader.Cpu">Cpu</span> <a href="#Cpu">Cpu</a>
<span id="FileHeader.SubCpu">SubCpu</span> <a href="/builtin#uint32">uint32</a>
<span id="FileHeader.Type">Type</span> <a href="#Type">Type</a>
<span id="FileHeader.Ncmd">Ncmd</span> <a href="/builtin#uint32">uint32</a>
<span id="FileHeader.Cmdsz">Cmdsz</span> <a href="/builtin#uint32">uint32</a>
<span id="FileHeader.Flags">Flags</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A FileHeader represents a Mach-O file header.
</p>
<h3 id="FormatError" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L152">FormatError</a> <a class="permalink" href="#FormatError">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=FormatError&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L152">❖</a><pre>type FormatError struct {
<span class="com">// contains filtered or unexported fields</span>
}</pre></div><p>
FormatError is returned by some operations if the data does
not have the correct format for an object file.
</p>
<h4 id="FormatError.Error" data-kind="m">func (*FormatError) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L158">Error</a> <a class="permalink" href="#FormatError.Error">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=FormatError%2FError&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L158">❖</a><pre>func (e *<a href="#FormatError">FormatError</a>) Error() <a href="/builtin#string">string</a></pre></div>
<h3 id="Load" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L33">Load</a> <a class="permalink" href="#Load">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Load&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="m"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L33">❖</a><pre>type Load interface {
<span id="Load.Raw">Raw</span>() []<a href="/builtin#byte">byte</a>
}</pre></div><p>
A Load represents any Mach-O load command.
</p>
<h3 id="LoadBytes" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L38">LoadBytes</a> <a class="permalink" href="#LoadBytes">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=LoadBytes&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L38">❖</a><pre>type LoadBytes []<a href="/builtin#byte">byte</a></pre></div><p>
A LoadBytes is the uninterpreted bytes of a Mach-O load command.
</p>
<h4 id="LoadBytes.Raw" data-kind="m">func (LoadBytes) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L40">Raw</a> <a class="permalink" href="#LoadBytes.Raw">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=LoadBytes%2FRaw&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L40">❖</a><pre>func (b <a href="#LoadBytes">LoadBytes</a>) Raw() []<a href="/builtin#byte">byte</a></pre></div>
<h3 id="LoadCmd" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L69">LoadCmd</a> <a class="permalink" href="#LoadCmd">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=LoadCmd&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L69">❖</a><pre>type LoadCmd <a href="/builtin#uint32">uint32</a></pre></div><p>
A LoadCmd is a Mach-O load command.
</p>
<div class="decl" data-kind="c"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L71">❖</a><pre>const (
<span id="LoadCmdSegment">LoadCmdSegment</span> <a href="#LoadCmd">LoadCmd</a> = 1
<span id="LoadCmdSymtab">LoadCmdSymtab</span> <a href="#LoadCmd">LoadCmd</a> = 2
<span id="LoadCmdThread">LoadCmdThread</span> <a href="#LoadCmd">LoadCmd</a> = 4
<span id="LoadCmdUnixThread">LoadCmdUnixThread</span> <a href="#LoadCmd">LoadCmd</a> = 5 <span class="com">// thread+stack</span>
<span id="LoadCmdDysymtab">LoadCmdDysymtab</span> <a href="#LoadCmd">LoadCmd</a> = 11
<span id="LoadCmdDylib">LoadCmdDylib</span> <a href="#LoadCmd">LoadCmd</a> = 12
<span id="LoadCmdDylinker">LoadCmdDylinker</span> <a href="#LoadCmd">LoadCmd</a> = 15
<span id="LoadCmdSegment64">LoadCmdSegment64</span> <a href="#LoadCmd">LoadCmd</a> = 25
)</pre></div>
<h4 id="LoadCmd.GoString" data-kind="m">func (LoadCmd) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L91">GoString</a> <a class="permalink" href="#LoadCmd.GoString">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=LoadCmd%2FGoString&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L91">❖</a><pre>func (i <a href="#LoadCmd">LoadCmd</a>) GoString() <a href="/builtin#string">string</a></pre></div>
<h4 id="LoadCmd.String" data-kind="m">func (LoadCmd) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L90">String</a> <a class="permalink" href="#LoadCmd.String">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=LoadCmd%2FString&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L90">❖</a><pre>func (i <a href="#LoadCmd">LoadCmd</a>) String() <a href="/builtin#string">string</a></pre></div>
<h3 id="Nlist32" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L199">Nlist32</a> <a class="permalink" href="#Nlist32">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Nlist32&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L199">❖</a><pre>type Nlist32 struct {
<span id="Nlist32.Name">Name</span> <a href="/builtin#uint32">uint32</a>
<span id="Nlist32.Type">Type</span> <a href="/builtin#uint8">uint8</a>
<span id="Nlist32.Sect">Sect</span> <a href="/builtin#uint8">uint8</a>
<span id="Nlist32.Desc">Desc</span> <a href="/builtin#uint16">uint16</a>
<span id="Nlist32.Value">Value</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
An Nlist32 is a Mach-O 32-bit symbol table entry.
</p>
<h3 id="Nlist64" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L208">Nlist64</a> <a class="permalink" href="#Nlist64">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Nlist64&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L208">❖</a><pre>type Nlist64 struct {
<span id="Nlist64.Name">Name</span> <a href="/builtin#uint32">uint32</a>
<span id="Nlist64.Type">Type</span> <a href="/builtin#uint8">uint8</a>
<span id="Nlist64.Sect">Sect</span> <a href="/builtin#uint8">uint8</a>
<span id="Nlist64.Desc">Desc</span> <a href="/builtin#uint16">uint16</a>
<span id="Nlist64.Value">Value</span> <a href="/builtin#uint64">uint64</a>
}</pre></div><p>
An Nlist64 is a Mach-O 64-bit symbol table entry.
</p>
<h3 id="Regs386" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L234">Regs386</a> <a class="permalink" href="#Regs386">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Regs386&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L234">❖</a><pre>type Regs386 struct {
<span id="Regs386.AX">AX</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.BX">BX</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.CX">CX</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.DX">DX</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.DI">DI</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.SI">SI</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.BP">BP</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.SP">SP</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.SS">SS</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.FLAGS">FLAGS</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.IP">IP</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.CS">CS</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.DS">DS</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.ES">ES</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.FS">FS</span> <a href="/builtin#uint32">uint32</a>
<span id="Regs386.GS">GS</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
Regs386 is the Mach-O 386 register structure.
</p>
<h3 id="RegsAMD64" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L254">RegsAMD64</a> <a class="permalink" href="#RegsAMD64">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=RegsAMD64&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L254">❖</a><pre>type RegsAMD64 struct {
<span id="RegsAMD64.AX">AX</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.BX">BX</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.CX">CX</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.DX">DX</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.DI">DI</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.SI">SI</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.BP">BP</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.SP">SP</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R8">R8</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R9">R9</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R10">R10</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R11">R11</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R12">R12</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R13">R13</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R14">R14</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.R15">R15</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.IP">IP</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.FLAGS">FLAGS</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.CS">CS</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.FS">FS</span> <a href="/builtin#uint64">uint64</a>
<span id="RegsAMD64.GS">GS</span> <a href="/builtin#uint64">uint64</a>
}</pre></div><p>
RegsAMD64 is the Mach-O AMD64 register structure.
</p>
<h3 id="Section" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L97">Section</a> <a class="permalink" href="#Section">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Section&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L97">❖</a><pre>type Section struct {
<a href="#SectionHeader">SectionHeader</a>
<span class="com">// Embed ReaderAt for ReadAt method.
// Do not embed SectionReader directly
// to avoid having Read and Seek.
// If a client wants Read and Seek it must use
// Open() to avoid fighting over the seek offset
// with other clients.</span>
<a href="/io">io</a>.<a href="/io#ReaderAt">ReaderAt</a>
<span class="com">// contains filtered or unexported fields</span>
}</pre></div>
<h4 id="Section.Data" data-kind="m">func (*Section) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L111">Data</a> <a class="permalink" href="#Section.Data">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=Section%2FData&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L111">❖</a><pre>func (s *<a href="#Section">Section</a>) Data() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre></div><p>
Data reads and returns the contents of the Mach-O section.
</p>
<h4 id="Section.Open" data-kind="m">func (*Section) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L121">Open</a> <a class="permalink" href="#Section.Open">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=Section%2FOpen&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L121">❖</a><pre>func (s *<a href="#Section">Section</a>) Open() <a href="/io">io</a>.<a href="/io#ReadSeeker">ReadSeeker</a></pre></div><p>
Open returns a new ReadSeeker reading the Mach-O section.
</p>
<h3 id="Section32" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L134">Section32</a> <a class="permalink" href="#Section32">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Section32&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L134">❖</a><pre>type Section32 struct {
<span id="Section32.Name">Name</span> [16]<a href="/builtin#byte">byte</a>
<span id="Section32.Seg">Seg</span> [16]<a href="/builtin#byte">byte</a>
<span id="Section32.Addr">Addr</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Size">Size</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Offset">Offset</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Align">Align</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Reloff">Reloff</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Nreloc">Nreloc</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Flags">Flags</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Reserve1">Reserve1</span> <a href="/builtin#uint32">uint32</a>
<span id="Section32.Reserve2">Reserve2</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A Section32 is a 32-bit Mach-O section header.
</p>
<h3 id="Section64" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L149">Section64</a> <a class="permalink" href="#Section64">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Section64&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L149">❖</a><pre>type Section64 struct {
<span id="Section64.Name">Name</span> [16]<a href="/builtin#byte">byte</a>
<span id="Section64.Seg">Seg</span> [16]<a href="/builtin#byte">byte</a>
<span id="Section64.Addr">Addr</span> <a href="/builtin#uint64">uint64</a>
<span id="Section64.Size">Size</span> <a href="/builtin#uint64">uint64</a>
<span id="Section64.Offset">Offset</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Align">Align</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Reloff">Reloff</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Nreloc">Nreloc</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Flags">Flags</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Reserve1">Reserve1</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Reserve2">Reserve2</span> <a href="/builtin#uint32">uint32</a>
<span id="Section64.Reserve3">Reserve3</span> <a href="/builtin#uint32">uint32</a>
}</pre></div><p>
A Section64 is a 64-bit Mach-O section header.
</p>
<h3 id="SectionHeader" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L85">SectionHeader</a> <a class="permalink" href="#SectionHeader">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=SectionHeader&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L85">❖</a><pre>type SectionHeader struct {
<span id="SectionHeader.Name">Name</span> <a href="/builtin#string">string</a>
<span id="SectionHeader.Seg">Seg</span> <a href="/builtin#string">string</a>
<span id="SectionHeader.Addr">Addr</span> <a href="/builtin#uint64">uint64</a>
<span id="SectionHeader.Size">Size</span> <a href="/builtin#uint64">uint64</a>
<span id="SectionHeader.Offset">Offset</span> <a href="/builtin#uint32">uint32</a>
<span id="SectionHeader.Align">Align</span> <a href="/builtin#uint32">uint32</a>
<span id="SectionHeader.Reloff">Reloff</span> <a href="/builtin#uint32">uint32</a>
<span id="SectionHeader.Nreloc">Nreloc</span> <a href="/builtin#uint32">uint32</a>
<span id="SectionHeader.Flags">Flags</span> <a href="/builtin#uint32">uint32</a>
}</pre></div>
<h3 id="Segment" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L58">Segment</a> <a class="permalink" href="#Segment">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Segment&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L58">❖</a><pre>type Segment struct {
<a href="#LoadBytes">LoadBytes</a>
<a href="#SegmentHeader">SegmentHeader</a>
<span class="com">// Embed ReaderAt for ReadAt method.
// Do not embed SectionReader directly
// to avoid having Read and Seek.
// If a client wants Read and Seek it must use
// Open() to avoid fighting over the seek offset
// with other clients.</span>
<a href="/io">io</a>.<a href="/io#ReaderAt">ReaderAt</a>
<span class="com">// contains filtered or unexported fields</span>
}</pre></div><p>
A Segment represents a Mach-O 32-bit or 64-bit load segment command.
</p>
<h4 id="Segment.Data" data-kind="m">func (*Segment) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L73">Data</a> <a class="permalink" href="#Segment.Data">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=Segment%2FData&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L73">❖</a><pre>func (s *<a href="#Segment">Segment</a>) Data() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre></div><p>
Data reads and returns the contents of the segment.
</p>
<h4 id="Segment.Open" data-kind="m">func (*Segment) <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L83">Open</a> <a class="permalink" href="#Segment.Open">¶</a> <a class="uses" title="List Method Callers" href="https://sourcegraph.com/-/godoc/refs?def=Segment%2FOpen&pkg=debug%2Fmacho&repo=">Uses</a></h4>
<div class="funcdecl decl"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/file.go#L83">❖</a><pre>func (s *<a href="#Segment">Segment</a>) Open() <a href="/io">io</a>.<a href="/io#ReadSeeker">ReadSeeker</a></pre></div><p>
Open returns a new ReadSeeker reading the segment.
</p>
<h3 id="Segment32" data-kind="t">type <a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L109">Segment32</a> <a class="permalink" href="#Segment32">¶</a> <a class="uses" title="List Uses of This Type" href="https://sourcegraph.com/-/godoc/refs?def=Segment32&pkg=debug%2Fmacho&repo=">Uses</a></h3>
<div class="decl" data-kind="d"><a title="View Source" href="https://github.com/golang/go/blob/master/src/debug/macho/macho.go#L109">❖</a><pre>type Segment32 struct {
<span id="Segment32.Cmd">Cmd</span> <a href="#LoadCmd">LoadCmd</a>
<span id="Segment32.Len">Len</span> <a href="/builtin#uint32">uint32</a>
<span id="Segment32.Name">Name</span> [16]<a href="/builtin#byte">byte</a>
<span id="Segment32.Addr">Addr</span> <a href="/builtin#uint32">uint32</a>
<span id="Segment32.Memsz">Memsz</span> <a href="/builtin#uint32">uint32</a>