[][src]Module sunrise_loader::elf_loader

Loads Elfs.

Loads the elf binaries.

Functions

from_data

Turn a byte array into an ELF file.

get_kacs

Gets the desired kernel access controls for a process based on the .kernel_caps section in its elf

get_size

Gets the size of the allocation necessary to load all the segments.

load_file

Loads the given executable into the given process/address space.

load_segment

Loads an elf segment by coping file_size bytes to the right address, and filling remaining with 0s. This is used by NOBITS sections (.bss), this way we initialize them to 0.