Versions in this module Expand all Collapse all v0 v0.26.0 Aug 7, 2018 v0.25.0 Jul 12, 2018 v0.24.0 Jun 20, 2018 Changes in this version + const Magic32 + const Magic64 + const MagicFat + var ErrNotFat = &FormatError + type Cpu uint32 + const Cpu386 + const CpuAmd64 + const CpuArm + const CpuPpc + const CpuPpc64 + func (i Cpu) GoString() string + func (i Cpu) String() string + type Dylib struct + CompatVersion uint32 + CurrentVersion uint32 + Name string + Time uint32 + type DylibCmd struct + Cmd LoadCmd + CompatVersion uint32 + CurrentVersion uint32 + Len uint32 + Name uint32 + Time uint32 + type Dysymtab struct + IndirectSyms []uint32 + type DysymtabCmd struct + Cmd LoadCmd + Extrefsymoff uint32 + Extreloff uint32 + Iextdefsym uint32 + Ilocalsym uint32 + Indirectsymoff uint32 + Iundefsym uint32 + Len uint32 + Locreloff uint32 + Modtaboff uint32 + Nextdefsym uint32 + Nextrefsyms uint32 + Nextrel uint32 + Nindirectsyms uint32 + Nlocalsym uint32 + Nlocrel uint32 + Nmodtab uint32 + Ntoc uint32 + Nundefsym uint32 + Tocoffset uint32 + type FatArch struct + type FatArchHeader struct + Align uint32 + Cpu Cpu + Offset uint32 + Size uint32 + SubCpu uint32 + type FatFile struct + Arches []FatArch + Magic uint32 + func NewFatFile(r io.ReaderAt) (*FatFile, error) + func OpenFat(name string) (ff *FatFile, err error) + func (ff *FatFile) Close() error + type File struct + ByteOrder binary.ByteOrder + Dysymtab *Dysymtab + Loads []Load + Sections []*Section + Symtab *Symtab + func NewFile(r io.ReaderAt) (*File, error) + func Open(name string) (*File, error) + func (f *File) Close() error + func (f *File) DWARF() (*dwarf.Data, error) + func (f *File) ImportedLibraries() ([]string, error) + func (f *File) ImportedSymbols() ([]string, error) + func (f *File) Section(name string) *Section + func (f *File) Segment(name string) *Segment + type FileHeader struct + Cmdsz uint32 + Cpu Cpu + Flags uint32 + Magic uint32 + Ncmd uint32 + SubCpu uint32 + Type Type + type FormatError struct + func (e *FormatError) Error() string + type Load interface + Raw func() []byte + type LoadBytes []byte + func (b LoadBytes) Raw() []byte + type LoadCmd uint32 + const LoadCmdDylib + const LoadCmdDylinker + const LoadCmdDysymtab + const LoadCmdSegment + const LoadCmdSegment64 + const LoadCmdSymtab + const LoadCmdThread + const LoadCmdUnixThread + func (i LoadCmd) GoString() string + func (i LoadCmd) String() string + type Nlist32 struct + Desc uint16 + Name uint32 + Sect uint8 + Type uint8 + Value uint32 + type Nlist64 struct + Desc uint16 + Name uint32 + Sect uint8 + Type uint8 + Value uint64 + type Regs386 struct + AX uint32 + BP uint32 + BX uint32 + CS uint32 + CX uint32 + DI uint32 + DS uint32 + DX uint32 + ES uint32 + FLAGS uint32 + FS uint32 + GS uint32 + IP uint32 + SI uint32 + SP uint32 + SS uint32 + type RegsAMD64 struct + AX uint64 + BP uint64 + BX uint64 + CS uint64 + CX uint64 + DI uint64 + DX uint64 + FLAGS uint64 + FS uint64 + GS uint64 + IP uint64 + R10 uint64 + R11 uint64 + R12 uint64 + R13 uint64 + R14 uint64 + R15 uint64 + R8 uint64 + R9 uint64 + SI uint64 + SP uint64 + type Section struct + func (s *Section) Data() ([]byte, error) + func (s *Section) Open() io.ReadSeeker + type Section32 struct + Addr uint32 + Align uint32 + Flags uint32 + Name [16]byte + Nreloc uint32 + Offset uint32 + Reloff uint32 + Reserve1 uint32 + Reserve2 uint32 + Seg [16]byte + Size uint32 + type Section64 struct + Addr uint64 + Align uint32 + Flags uint32 + Name [16]byte + Nreloc uint32 + Offset uint32 + Reloff uint32 + Reserve1 uint32 + Reserve2 uint32 + Reserve3 uint32 + Seg [16]byte + Size uint64 + type SectionHeader struct + Addr uint64 + Align uint32 + Flags uint32 + Name string + Nreloc uint32 + Offset uint32 + Reloff uint32 + Seg string + Size uint64 + type Segment struct + func (s *Segment) Data() ([]byte, error) + func (s *Segment) Open() io.ReadSeeker + type Segment32 struct + Addr uint32 + Cmd LoadCmd + Filesz uint32 + Flag uint32 + Len uint32 + Maxprot uint32 + Memsz uint32 + Name [16]byte + Nsect uint32 + Offset uint32 + Prot uint32 + type Segment64 struct + Addr uint64 + Cmd LoadCmd + Filesz uint64 + Flag uint32 + Len uint32 + Maxprot uint32 + Memsz uint64 + Name [16]byte + Nsect uint32 + Offset uint64 + Prot uint32 + type SegmentHeader struct + Addr uint64 + Cmd LoadCmd + Filesz uint64 + Flag uint32 + Len uint32 + Maxprot uint32 + Memsz uint64 + Name string + Nsect uint32 + Offset uint64 + Prot uint32 + type Symbol struct + Desc uint16 + Name string + Sect uint8 + Type uint8 + Value uint64 + type Symtab struct + Syms []Symbol + type SymtabCmd struct + Cmd LoadCmd + Len uint32 + Nsyms uint32 + Stroff uint32 + Strsize uint32 + Symoff uint32 + type Thread struct + Cmd LoadCmd + Data []uint32 + Len uint32 + Type uint32 + type Type uint32 + const TypeBundle + const TypeDylib + const TypeExec + const TypeObj