Versions in this module Expand all Collapse all v0 v0.2.1 Apr 25, 2017 Changes in this version + const DYN + const EXEC + const UNKNOWN + var UnknownMagic = errors.New("Could not identify file magic.") + func Load(r io.ReaderAt) (models.Loader, error) + func LoadArch(r io.ReaderAt, arch string) (models.Loader, error) + func LoadFile(path string) (models.Loader, error) + func LoadFileArch(path string, arch string) (models.Loader, error) + func MatchCgc(r io.ReaderAt) bool + func MatchElf(r io.ReaderAt) bool + func MatchMachO(r io.ReaderAt) bool + func NewCgcLoader(r io.ReaderAt, arch string) (models.Loader, error) + func NewElfLoader(r io.ReaderAt, arch string) (models.Loader, error) + func NewMachOLoader(r io.ReaderAt, archHint string) (models.Loader, error) + func NewNullLoader(arch, os string, byteOrder binary.ByteOrder, entry uint64) models.Loader + type CgcLoader struct + func (c *CgcLoader) OS() string + type ElfLoader struct + func (e *ElfLoader) DWARF() (*dwarf.Data, error) + func (e *ElfLoader) DataSegment() (start, end uint64) + func (e *ElfLoader) Header() (uint64, []byte, int) + func (e *ElfLoader) Interp() string + func (e *ElfLoader) Segments() ([]models.SegmentData, error) + func (e *ElfLoader) Symbols() ([]models.Symbol, error) + func (e *ElfLoader) Type() int + type FakeCgcReader struct + func (f *FakeCgcReader) ReadAt(p []byte, off int64) (int, error) + type LoaderHeader struct + func (l *LoaderHeader) Arch() string + func (l *LoaderHeader) Bits() int + func (l *LoaderHeader) ByteOrder() binary.ByteOrder + func (l *LoaderHeader) Entry() uint64 + func (l *LoaderHeader) OS() string + type MachOLoader struct + func (m *MachOLoader) DWARF() (*dwarf.Data, error) + func (m *MachOLoader) DataSegment() (start, end uint64) + func (m *MachOLoader) Header() (uint64, []byte, int) + func (m *MachOLoader) Interp() string + func (m *MachOLoader) Segments() ([]models.SegmentData, error) + func (m *MachOLoader) Symbols() ([]models.Symbol, error) + func (m *MachOLoader) Type() int + type NullLoader struct + func (n *NullLoader) DWARF() (*dwarf.Data, error) + func (n *NullLoader) DataSegment() (uint64, uint64) + func (n *NullLoader) Header() (uint64, []byte, int) + func (n *NullLoader) Interp() string + func (n *NullLoader) Segments() ([]models.SegmentData, error) + func (n *NullLoader) Symbols() ([]models.Symbol, error) + func (n *NullLoader) Type() int