disasm

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syscall

type Syscall struct {
	Num      int    // Syscall number.
	Name     string // Syscall name.
	Caller   string // Function calling the syscall.
	Function string // Function used to make the systell (e.g. unix.Syscall6).
	Location string // File and line where the syscall is invoked.
	Assembly string // Assembly instruction that loads syscall number.
}

Syscall is a system call found in the disassembly.

func ExtractSyscalls

func ExtractSyscalls(arch *arch.Info, objDump string) ([]Syscall, error)

ExtractSyscalls reads the objdump file and returns the syscalls that it finds.

Jump to

Keyboard shortcuts

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