[][src]Function sunrise_loader::elf_loader::load_segment

fn load_segment(
    process: &Process,
    segment: ProgramHeader,
    elf_file: &ElfFile,
    base: usize
) -> Result<(), Error>

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.