Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("bofloader: object is closed")
Functions ¶
This section is empty.
Types ¶
type LoadOptions ¶
type LoadOptions struct {
EntryPoint string
ValidateImports func([]Import) error
ResolveSymbol func(Import) (address uintptr, handled bool, err error)
}
LoadOptions controls entry selection and import resolution. Its zero value preserves Load's behavior.
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func LoadWithOptions ¶
func LoadWithOptions(data []byte, options LoadOptions) (*Loader, error)
Source Files
¶
- callbacks.go
- callbacks_context.go
- callbacks_unix.go
- invoke_unix_64.go
- loader.go
- memory_flush_x86.go
- memory_unix.go
- options.go
- parser_coff.go
- parser_elf.go
- parser_macho.go
- reloc.go
- reloc_aarch64.go
- reloc_arm32_elf.go
- reloc_coff.go
- reloc_elf.go
- reloc_macho.go
- reloc_ppc64le_elf.go
- reloc_riscv64_elf.go
- runtime_variant_default.go
- symbol_unix.go
- thunk.go
- towidechar_unix.go
- unwind_other.go
Click to show internal directories.
Click to hide internal directories.