Enum solana_rbpf::elf::ElfError
source · [−]pub enum ElfError {
Show 22 variants
FailedToParse(String),
EntrypointOutOfBounds,
InvalidEntrypoint,
FailedToGetSection(String),
UnresolvedSymbol(String, usize, usize),
SectionNotFound(String),
RelativeJumpOutOfBounds(usize),
SymbolHashCollision(u32),
WrongEndianess,
WrongAbi,
WrongMachine,
WrongClass,
NotOneTextSection,
BssNotSupported,
WritableSectionNotSupported(String),
AddressOutsideLoadableSection(u64),
InvalidVirtualAddress(u64),
UnknownRelocation(u32),
FailedToReadRelocationInfo,
WrongType,
UnknownSymbol(usize),
ValueOutOfBounds,
}
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 no 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
BssNotSupported
Read-write data not supported
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
Trait Implementations
Performs the conversion.