Enum solana_rbpf::elf::ElfError
source · pub enum ElfError {
Show 23 variants
FailedToParse(String),
EntrypointOutOfBounds,
InvalidEntrypoint,
FailedToGetSection(String),
UnresolvedSymbol(String, usize, usize),
SectionNotFound(String),
RelativeJumpOutOfBounds(usize),
SymbolHashCollision(u32),
WrongEndianess,
WrongAbi,
WrongMachine,
WrongClass,
NotOneTextSection,
WritableSectionNotSupported(String),
AddressOutsideLoadableSection(u64),
InvalidVirtualAddress(u64),
UnknownRelocation(u32),
FailedToReadRelocationInfo,
WrongType,
UnknownSymbol(usize),
ValueOutOfBounds,
UnsupportedSBPFVersion,
InvalidProgramHeader,
}
Expand description
Error definitions
Variants§
FailedToParse(String)
Failed to parse ELF file
EntrypointOutOfBounds
Entrypoint out of bounds
InvalidEntrypoint
Invaid entrypoint
FailedToGetSection(String)
Failed to get section
UnresolvedSymbol(String, usize, usize)
Unresolved symbol
SectionNotFound(String)
Section not found
RelativeJumpOutOfBounds(usize)
Relative jump out of bounds
SymbolHashCollision(u32)
Symbol hash collision
WrongEndianess
Incompatible ELF: wrong endianess
WrongAbi
Incompatible ELF: wrong ABI
WrongMachine
Incompatible ELF: wrong mchine
WrongClass
Incompatible ELF: wrong class
NotOneTextSection
Not one text section
WritableSectionNotSupported(String)
Read-write data not supported
AddressOutsideLoadableSection(u64)
Relocation failed, no loadable section contains virtual address
InvalidVirtualAddress(u64)
Relocation failed, invalid referenced virtual address
UnknownRelocation(u32)
Relocation failed, unknown type
FailedToReadRelocationInfo
Failed to read relocation info
WrongType
Incompatible ELF: wrong type
UnknownSymbol(usize)
Unknown symbol
ValueOutOfBounds
Offset or value is out of bounds
UnsupportedSBPFVersion
Detected sbpf_version required by the executable which are not enabled
InvalidProgramHeader
Invalid program header
Trait Implementations§
source§impl Error for ElfError
impl Error for ElfError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ElfParserError> for ElfError
impl From<ElfParserError> for ElfError
source§fn from(err: ElfParserError) -> Self
fn from(err: ElfParserError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ElfError
impl From<Error> for ElfError
source§fn from(error: GoblinError) -> Self
fn from(error: GoblinError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ElfError
impl PartialEq for ElfError
impl Eq for ElfError
impl StructuralEq for ElfError
impl StructuralPartialEq for ElfError
Auto Trait Implementations§
impl RefUnwindSafe for ElfError
impl Send for ElfError
impl Sync for ElfError
impl Unpin for ElfError
impl UnwindSafe for ElfError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more