xelf

package
v0.0.0-...-36277ca Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	X86 = word(iota)
	X64
)

Variables

This section is empty.

Functions

func GetInterp

func GetInterp(f *elf.File) (string, error)

func GetRelType

func GetRelType(code int) string

GetRelType get relocation type

func IsNotDynamic

func IsNotDynamic(f *elf.File) bool

Types

type Arch

type Arch struct {
	// contains filtered or unexported fields
}

type DynamicInfo

type DynamicInfo struct {
	Interp          string
	Symbols         []elf.Symbol
	Tag2Dyn         map[elf.DynTag][]string
	ImportedSymbols []elf.ImportedSymbol
	RelSections     []RelSection
}

func BuildDynamicInfo

func BuildDynamicInfo(f *elf.File) (dynamicInfo *DynamicInfo, err error)

type RelDecoded

type RelDecoded struct {
	XType     string
	Value     string
	Offset    uint64
	Addend    int64
	W         word
	IsAddend  bool
	IsDynamic bool
}

type RelResolver

type RelResolver interface {
	String() string
}

type RelSection

type RelSection struct {
	Section *elf.SectionHeader
	Rels    []RelDecoded
}

func BuildRelIf

func BuildRelIf(f *elf.File, dynamic bool) ([]RelSection, error)

Jump to

Keyboard shortcuts

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