elf

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package elf provides a mockable wrapper for debug/elf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) NewFile

func (*Impl) NewFile(r io.ReaderAt) (*elf.File, error)

func (*Impl) Open

func (*Impl) Open(name string) (*elf.File, error)

func (*Impl) R_INFO

func (*Impl) R_INFO(sym uint32, typ uint32) uint64

func (*Impl) R_INFO32

func (*Impl) R_INFO32(sym uint32, typ uint32) uint32

func (*Impl) R_SYM32

func (*Impl) R_SYM32(info uint32) uint32

func (*Impl) R_SYM64

func (*Impl) R_SYM64(info uint64) uint32

func (*Impl) R_TYPE32

func (*Impl) R_TYPE32(info uint32) uint32

func (*Impl) R_TYPE64

func (*Impl) R_TYPE64(info uint64) uint32

func (*Impl) ST_BIND

func (*Impl) ST_BIND(info uint8) elf.SymBind

func (*Impl) ST_INFO

func (*Impl) ST_INFO(bind elf.SymBind, typ elf.SymType) uint8

func (*Impl) ST_TYPE

func (*Impl) ST_TYPE(info uint8) elf.SymType

func (*Impl) ST_VISIBILITY

func (*Impl) ST_VISIBILITY(other uint8) elf.SymVis

type Interface

type Interface interface {
	NewFile(r io.ReaderAt) (*elf.File, error)
	Open(name string) (*elf.File, error)
	R_INFO(sym uint32, typ uint32) uint64
	R_INFO32(sym uint32, typ uint32) uint32
	R_SYM32(info uint32) uint32
	R_SYM64(info uint64) uint32
	R_TYPE32(info uint32) uint32
	R_TYPE64(info uint64) uint32
	ST_BIND(info uint8) elf.SymBind
	ST_INFO(bind elf.SymBind, typ elf.SymType) uint8
	ST_TYPE(info uint8) elf.SymType
	ST_VISIBILITY(other uint8) elf.SymVis
}

Jump to

Keyboard shortcuts

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