Struct solana_rbpf::elf::EBpfElf [−][src]
Elf loader/relocator
Implementations
impl<'a, E: UserDefinedError, I: InstructionMeter> EBpfElf<E, I>
[src][−]
pub fn new_from_text_bytes(config: Config, text_bytes: &[u8]) -> Self
[src][−]
Create from raw text section bytes (list of instructions)
pub fn load(config: Config, bytes: &[u8]) -> Result<Self, ElfError>
[src][−]
Fully loads an ELF, including validation and relocation
pub fn fixup_relative_calls(
calls: &mut HashMap<u32, usize>,
elf_bytes: &mut [u8]
) -> Result<(), ElfError>
[src][−]
calls: &mut HashMap<u32, usize>,
elf_bytes: &mut [u8]
) -> Result<(), ElfError>
Fix-ups relative calls
pub fn validate(elf: &Elf<'_>, elf_bytes: &[u8]) -> Result<(), ElfError>
[src][−]
Validates the ELF
Trait Implementations
impl<E: Debug + UserDefinedError, I: Debug + InstructionMeter> Debug for EBpfElf<E, I>
[src][+]
impl<E: UserDefinedError, I: InstructionMeter> Executable<E, I> for EBpfElf<E, I>
[src][+]
impl<E: PartialEq + UserDefinedError, I: PartialEq + InstructionMeter> PartialEq<EBpfElf<E, I>> for EBpfElf<E, I>
[src][+]
impl<E: UserDefinedError, I: InstructionMeter> StructuralPartialEq for EBpfElf<E, I>
[src]
Auto Trait Implementations
impl<E, I> RefUnwindSafe for EBpfElf<E, I>
impl<E, I> Send for EBpfElf<E, I>
impl<E, I> Sync for EBpfElf<E, I>
impl<E, I> Unpin for EBpfElf<E, I>
impl<E, I> !UnwindSafe for EBpfElf<E, I>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,