Struct object::ElfFile
[−]
[src]
pub struct ElfFile<'a> { /* fields omitted */ }
An ELF object file.
Methods
impl<'a> ElfFile<'a>
[src]
Trait Implementations
impl<'a> Debug for ElfFile<'a>
[src]
impl<'a> Object<'a> for ElfFile<'a>
[src]
type Segment = ElfSegment<'a>
A segment in the object file.
type SegmentIterator = ElfSegmentIterator<'a>
An iterator over the segments in the object file.
type Section = ElfSection<'a>
A section in the object file.
type SectionIterator = ElfSectionIterator<'a>
An iterator over the sections in the object file.
fn parse(data: &'a [u8]) -> Result<Self, &'static str>
[src]
Parse the raw object file data.
fn machine(&self) -> Machine
[src]
Get the machine type of the file.
fn segments(&'a self) -> ElfSegmentIterator<'a>
[src]
Get an iterator over the segments in the file.
fn section_data_by_name(&self, section_name: &str) -> Option<&'a [u8]>
[src]
Get the contents of the section named section_name
, if such a section exists. Read more
fn sections(&'a self) -> ElfSectionIterator<'a>
[src]
Get an iterator over the sections in the file.
fn symbols(&self) -> Vec<Symbol<'a>>
[src]
Get a Vec
of the symbols defined in the file. The symbols are unsorted and have the same order as the symbols in the file. Read more
fn is_little_endian(&self) -> bool
[src]
Return true if the file is little endian, false if it is big endian.