Documentation ¶
Index ¶
- Constants
- func Load(r io.ReaderAt) (models.Loader, error)
- func LoadFile(path 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) (models.Loader, error)
- func NewElfLoader(r io.ReaderAt) (models.Loader, error)
- func NewMachOLoader(r io.ReaderAt) (models.Loader, error)
- type CgcLoader
- type ElfLoader
- type FakeCgcReader
- type LoaderHeader
- type MachOLoader
Constants ¶
View Source
const ( UNKNOWN = iota EXEC DYN )
Variables ¶
This section is empty.
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
Click to show internal directories.
Click to hide internal directories.