ldd

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ldd retrieves linker information by invoking ldd from glibc or musl and parsing its output.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedSeparator = errors.New("unexpected separator")
	ErrPathNotAbsolute     = errors.New("path not absolute")
	ErrBadLocationFormat   = errors.New("bad location format")
	ErrUnexpectedNewline   = errors.New("unexpected newline")
)

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name     string `json:"name,omitempty"`
	Path     string `json:"path,omitempty"`
	Location uint64 `json:"location"`
}

func Exec

func Exec(p string) ([]*Entry, error)

func Parse

func Parse(stdout fmt.Stringer) ([]*Entry, error)

type EntryUnexpectedSegmentsError

type EntryUnexpectedSegmentsError string

func (EntryUnexpectedSegmentsError) Error

func (EntryUnexpectedSegmentsError) Is

Jump to

Keyboard shortcuts

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