Struct object::read::elf::ElfFile

source ·
pub struct ElfFile<'data, Elf, R = &'data [u8]>where
    Elf: FileHeader,
    R: ReadRef<'data>,
{ /* private fields */ }
Expand description

A partially parsed ELF file.

Most of the functionality of this type is provided by the Object trait implementation.

Implementations§

Parse the raw ELF file data.

Returns the endianness.

Returns the raw data.

Returns the raw ELF file header.

Returns the raw ELF segments.

Trait Implementations§

Formats the value using the given formatter. Read more

Get the imported symbols.

Get the exported symbols.

A segment in the object file.
An iterator over the segments in the object file.
A section in the object file.
An iterator over the sections in the object file.
A COMDAT section group in the object file.
An iterator over the COMDAT section groups in the object file.
A symbol in the object file.
An iterator over symbols in the object file.
A symbol table in the object file.
An iterator over dynamic relocations in the file. Read more
Get the architecture type of the file.
Return true if the file is little endian, false if it is big endian.
Return true if the file can contain 64-bit addresses.
Return the kind of this object.
Get an iterator over the segments in the file.
Like Self::section_by_name, but allows names that are not UTF-8.
Get the section at the given index. Read more
Get an iterator over the sections in the file.
Get an iterator over the COMDAT section groups in the file.
Get the debugging symbol at the given index. Read more
Get an iterator over the debugging symbols in the file. Read more
Get the symbol table, if any.
Get an iterator over the dynamic linking symbols in the file. Read more
Get the dynamic linking symbol table, if any. Read more
Get the dynamic relocations for this file. Read more
Return true if the file contains debug information sections, false if not.
The build ID from an ELF NT_GNU_BUILD_ID note.
The filename and CRC from a .gnu_debuglink section.
The filename and build ID from a .gnu_debugaltlink section.
Get the base address used for relative virtual addresses. Read more
Get the virtual address of the entry point of the binary
File flags that are specific to each file format.
Get the endianness of the file.
Get the section named section_name, if such a section exists. Read more
Construct a map from addresses to symbol names. Read more
Construct a map from addresses to symbol names and object file names. Read more
The UUID from a Mach-O LC_UUID load command.
The filename and GUID from the PE CodeView section

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.