Skip to main content

map_phdrs_and_copy_elf

Function map_phdrs_and_copy_elf 

Source
pub fn map_phdrs_and_copy_elf(
    addr_space: &mut AddressSpace,
    phdrs: &[ElfPhdr],
    elf: &[u8],
) -> Result<(), MmError>
Expand description

Map VMAs and pages according to the ELF phdrs and copy the ELF binary into the freshly mapped memory