Struct elfloader::ElfBinary [−][src]
pub struct ElfBinary<'s> { pub file: ElfFile<'s>, pub dynamic: Option<DynamicInfo>, }
Expand description
Abstract representation of a loadable ELF binary.
Fields
file: ElfFile<'s>
The ELF file in question.
dynamic: Option<DynamicInfo>
Parsed information from the .dynamic section (if the binary has it).
Implementations
Returns true if the binary is compiled as position independent code or false otherwise.
For the binary to be PIE it needs to have a .dynamic section with PIE set in the flags1 field.
Return the entry point of the ELF file.
Note this may be zero in case of position independent executables.
Create a slice of the program headers.
Get the name of the sectione
Enumerate all the symbols in the file
Trait Implementations
Auto Trait Implementations
impl<'s> RefUnwindSafe for ElfBinary<'s>
impl<'s> UnwindSafe for ElfBinary<'s>