import "debug/macho"
Package macho implements access to Mach-O object files.
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.
A Cpu is a Mach-O cpu type.
A Dylib represents a Mach-O load dynamic library command.
A DylibCmd is a Mach-O load dynamic library command.
A Dysymtab represents a Mach-O dynamic symbol table command.
A DysymtabCmd is a Mach-O dynamic symbol table command.
A FatArch is a Mach-O File inside a FatFile.
A FatArchHeader represents a fat header for a specific image architecture.
A FatFile is a Mach-O universal binary that contains at least one architecture.
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.
OpenFat opens the named file using os.Open and prepares it for use as a Mach-O universal binary.
A File represents an open Mach-O file.
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.
Open opens the named file using os.Open and prepares it for use as a Mach-O binary.
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect.
DWARF returns the DWARF debug information for the Mach-O file.
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.
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.
Section returns the first section with the given name, or nil if no such section exists.
Segment returns the first Segment with the given name, or nil if no such segment exists.
A FileHeader represents a Mach-O file header.
FormatError is returned by some operations if the data does not have the correct format for an object file.
A Load represents any Mach-O load command.
A LoadBytes is the uninterpreted bytes of a Mach-O load command.
A LoadCmd is a Mach-O load command.
An Nlist32 is a Mach-O 32-bit symbol table entry.
An Nlist64 is a Mach-O 64-bit symbol table entry.
Regs386 is the Mach-O 386 register structure.
RegsAMD64 is the Mach-O AMD64 register structure.
Data reads and returns the contents of the Mach-O section.
Open returns a new ReadSeeker reading the Mach-O section.
A Section32 is a 32-bit Mach-O section header.
A Section64 is a 64-bit Mach-O section header.
A Segment represents a Mach-O 32-bit or 64-bit load segment command.
Data reads and returns the contents of the segment.
Open returns a new ReadSeeker reading the segment.
A Segment32 is a 32-bit Mach-O segment load command.
A Segment64 is a 64-bit Mach-O segment load command.
A SegmentHeader is the header for a Mach-O 32-bit or 64-bit load segment command.
A Symbol is a Mach-O 32-bit or 64-bit symbol table entry.
A Symtab represents a Mach-O symbol table command.
A SymtabCmd is a Mach-O symbol table command.
A Thread is a Mach-O thread state command.
A Type is the Mach-O file type, e.g. an object file, executable, or dynamic library.