elf

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SET_INTERPRETER = iota
	SET_SONAME
	SET_RPATH
	ADD_NEEDED
	REMOVE_RPATH
	REMOVE_NEEDED
	REPLACE_NEEDED
)

Variables

View Source
var PARAMS = []string{"--set-interpreter", "--set-soname", "--set-rpath", "--add-needed", "--remove-rpath", "--remove-needed", "--replace-needed"}

Functions

func ElfAddNeeded

func ElfAddNeeded(elfpath string, libs []string, prog string) (bool, *Error)

func ElfRPath

func ElfRPath(elfpath string, lib string, prog string) (bool, *Error)

func ElfRemoveNeeded

func ElfRemoveNeeded(elfpath string, libs []string, prog string) (bool, *Error)

func ElfRemoveRPath

func ElfRemoveRPath(elfpath string, lib string, prog string) (bool, *Error)

func ElfReplaceNeeded

func ElfReplaceNeeded(elfpath string, lib_old string, lib_new string, prog string) (bool, *Error)

func ElfSetInterpreter

func ElfSetInterpreter(elfpath string, lib string, prog string) (bool, *Error)

func ElfSetSoname

func ElfSetSoname(elfpath string, lib string, prog string) (bool, *Error)

func Patchldso

func Patchldso(elfpath string, newpath string) *Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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