[−][src]Function sunrise_kernel::elf_loader::load_segment
fn load_segment(
process_memory: &mut ProcessMemory,
segment: ProgramHeader,
elf_file: &ElfFile,
base: usize
)
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.