Module elf_load

Source
Expand description

Utilities for loading ELF files into an existing address space.

Structs§

LoadedElf
Return value of load_elf.
LoadedElfInfo
Information on what an ELF requires of its address space.

Enums§

ElfLoadError
Possible errors that can occur during ELF loading.

Traits§

Mapper
A trait so that callers of map_elf_segments can hook the map operation.

Functions§

load_elf
Load an ELF into a new sub-VMAR of the specified root.
loaded_elf_info
Returns the address space requirements to load this ELF. Attempting to load it into a VMAR with permissions less than max_perm, or at a base such that the range [base+low, base+high] is not entirely valid, will fail.
map_elf_segments
Map the segments of an ELF into an existing VMAR.