elf

package
v0.0.0-...-1bd026a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright (C) 2022 Mandiant, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ELF

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

func GetFromPid

func GetFromPid(pid int) *ELF

func (*ELF) Parse

func (e *ELF) Parse() (elfInfo *ELFInfo, err error)

type ELFInfo

type ELFInfo struct {
	GoVersion string
	Symbols
	GProto, AllgsProto *Proto

	UnrealRuntimeGoexitOffset uint64
}

func (*ELFInfo) AdjustOffset

func (e *ELFInfo) AdjustOffset(offset uint64)

func (ELFInfo) LookupSymbol

func (e ELFInfo) LookupSymbol(offset uint64) Symbol

type ExtractMetadata

type ExtractMetadata struct {
	Version   string
	Functions []FuncMetadata
}

type Field

type Field struct {
	Offset uint64
	Size   uint64
}

type FuncMetadata

type FuncMetadata struct {
	Start    uint64
	End      uint64
	FullName string
}

type G

type G struct {
	Size    uint64
	Offsets map[string]uint64
}

func (*G) FieldOffset

func (g *G) FieldOffset(name string) uint64

type Proto

type Proto struct {
	Fields map[string]*Field
}

func (*Proto) GetField

func (p *Proto) GetField(name string) (*Field, bool)

type Symbol

type Symbol struct {
	Offset uint64
	Name   string
}

type Symbols

type Symbols []Symbol // sorted

Jump to

Keyboard shortcuts

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