elefant

package module
v0.0.0-...-d52333c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 12 Imported by: 2

README

elefant

MIT licensed Build Status Go Report Card

Probe ELF files.

License

elefant is released under the MIT License. See the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch string
const (
	Arch386     Arch = "386"
	ArchAmd64   Arch = "amd64"
	ArchUnknown Arch = ""
)

type Cache

type Cache struct {
	Nodes map[string]*TraceNode
}

type ElfInfo

type ElfInfo struct {
	Arch          Arch     `json:"arch"`
	Imports       []string `json:"imports"`
	GlibcVersion  string   `json:"glibcVersion"`
	CxxAbiVersion string   `json:"cxxAbiVersion"`
}

func Probe

func Probe(file eos.File, params ProbeParams) (*ElfInfo, error)

Probe retrieves information about an ELF file

type ProbeParams

type ProbeParams struct {
	Consumer *state.Consumer
}

type SearchPaths

type SearchPaths struct {
	Paths []string
	// contains filtered or unexported fields
}

type TraceNode

type TraceNode struct {
	Name     string
	FullPath string
	Info     *ElfInfo

	Children          []*TraceNode
	UnresolvedImports []string
}

func Trace

func Trace(info *ElfInfo, fullPath string) (*TraceNode, error)

func (*TraceNode) String

func (n *TraceNode) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL