Trait elfloader32::ElfLoader [] [src]

pub trait ElfLoader {
    fn allocate(&mut self, base: VAddr, size: usize, flags: ProgFlag);
    fn load(&mut self, base: VAddr, region: &'static [u8]);
}

Implement this for ELF loading.

Required Methods

Allocates a virtual region of size amount of bytes.

Copies the region into the base.

Implementors