elfutil

package
v0.0.0-...-ff4e43f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AT_NULL          = 0
	AT_IGNORE        = 1
	AT_EXECFD        = 2
	AT_PHDR          = 3
	AT_PHENT         = 4
	AT_PHNUM         = 5
	AT_PAGESZ        = 6
	AT_BASE          = 7
	AT_FLAGS         = 8
	AT_ENTRY         = 9
	AT_NOTELF        = 10
	AT_UID           = 11
	AT_EUID          = 12
	AT_GID           = 13
	AT_EGID          = 14
	AT_PLATFORM      = 15
	AT_HWCAP         = 16
	AT_CLKTCK        = 17
	AT_SECURE        = 23
	AT_BASE_PLATFORM = 24
	AT_RANDOM        = 25
	AT_HWCAP2        = 26
	AT_EXECFN        = 31
	AT_MINSIGSTKSZ   = 51
)

https://github.com/torvalds/linux/blob/v5.19/include/uapi/linux/auxvec.h

View Source
const (
	AT_SYSINFO      = 32
	AT_SYSINFO_EHDR = 33
)

https://github.com/torvalds/linux/blob/v5.19/arch/x86/include/uapi/asm/auxvec.h

Variables

This section is empty.

Functions

func PokeAuxv

func PokeAuxv(pid int, addr uintptr, auxvSlice []Elf64_auxv_t) error

Types

type Elf64_auxv_t

type Elf64_auxv_t struct {
	A_type uint64
	A_val  uint64
}

func PeekAuxv

func PeekAuxv(pid int, stackPtr uintptr) ([]Elf64_auxv_t, uintptr, error)

type TlsTemplate

type TlsTemplate struct {
	RequiredSize uint64 // including the TLS pointer (at the end, on amd64)
	Tdata        *elf.Section
	Tbss         *elf.Section
	ElfFile      *elf.File
}

func ReadTlsTemplate

func ReadTlsTemplate(pid int) (*TlsTemplate, error)

func (*TlsTemplate) Close

func (x *TlsTemplate) Close() error

Jump to

Keyboard shortcuts

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