Documentation
¶
Index ¶
- Constants
- Variables
- 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
- type ElfLoader
- 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
- type LoaderHeader
- type MachOLoader
- 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
- 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
Constants ¶
View Source
const ( UNKNOWN = iota EXEC DYN )
Variables ¶
View Source
var UnknownMagic = errors.New("Could not identify file magic.")
Functions ¶
func MatchMachO ¶
Types ¶
type ElfLoader ¶
type ElfLoader struct { LoaderHeader // contains filtered or unexported fields }
func (*ElfLoader) DataSegment ¶
type FakeCgcReader ¶
type LoaderHeader ¶
type LoaderHeader struct {
// contains filtered or unexported fields
}
func (*LoaderHeader) Arch ¶
func (l *LoaderHeader) Arch() string
func (*LoaderHeader) Bits ¶
func (l *LoaderHeader) Bits() int
func (*LoaderHeader) ByteOrder ¶
func (l *LoaderHeader) ByteOrder() binary.ByteOrder
func (*LoaderHeader) Entry ¶
func (l *LoaderHeader) Entry() uint64
func (*LoaderHeader) OS ¶
func (l *LoaderHeader) OS() string
type MachOLoader ¶
type MachOLoader struct { LoaderHeader // contains filtered or unexported fields }
func (*MachOLoader) DataSegment ¶
func (m *MachOLoader) DataSegment() (start, end uint64)
func (*MachOLoader) Interp ¶
func (m *MachOLoader) Interp() string
func (*MachOLoader) Segments ¶
func (m *MachOLoader) Segments() ([]models.SegmentData, error)
func (*MachOLoader) Type ¶
func (m *MachOLoader) Type() int
type NullLoader ¶
type NullLoader struct {
LoaderHeader
}
func (*NullLoader) DataSegment ¶
func (n *NullLoader) DataSegment() (uint64, uint64)
func (*NullLoader) Interp ¶
func (n *NullLoader) Interp() string
func (*NullLoader) Segments ¶
func (n *NullLoader) Segments() ([]models.SegmentData, error)
func (*NullLoader) Type ¶
func (n *NullLoader) Type() int
Click to show internal directories.
Click to hide internal directories.