elfreader

package
v0.9.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NoteTypeGNUBuildID = 3
	NoteTypeGoBuildID  = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ElfNote

type ElfNote struct {
	Name string // Contents of the "name" field, omitting the trailing zero byte.
	Desc []byte // Contents of the "desc" field.
	Type uint32 // Contents of the "type" field.
}

ElfNote is the payload of a Note Section in an ELF file.

func ParseNotes

func ParseNotes(reader io.Reader, alignment int, order binary.ByteOrder) ([]ElfNote, error)

ParseNotes returns the notes from a SHT_NOTE section or PT_NOTE segment.

Jump to

Keyboard shortcuts

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