Struct kernel::common::elf::ELF [] [src]

pub struct ELF {
    pub data: usize,
}

An ELF executable

Fields

data

Methods

impl ELF

fn new() -> Self

Create a new empty ELF executable

fn from_data(file_data: usize) -> Self

Create a ELF executable from data

unsafe fn d(&self)

Debug

unsafe fn load_segment(&self) -> Option<ELFSegment>

unsafe fn entry(&self) -> usize

Get the entry field of the header

unsafe fn symbol(&self, name: &str) -> usize

ELF symbol

Trait Implementations

impl Drop for ELF

fn drop(&mut self)