pub struct RoxyElfLoader;Trait Implementations§
Source§impl ElfLoader for RoxyElfLoader
impl ElfLoader for RoxyElfLoader
Source§fn allocate(
&mut self,
load_headers: LoadableHeaders<'_, '_>,
) -> Result<(), ElfLoaderErr>
fn allocate( &mut self, load_headers: LoadableHeaders<'_, '_>, ) -> Result<(), ElfLoaderErr>
Allocates a virtual region specified by
load_headers.Source§fn load(
&mut self,
_flags: Flags,
base: VAddr,
region: &[u8],
) -> Result<(), ElfLoaderErr>
fn load( &mut self, _flags: Flags, base: VAddr, region: &[u8], ) -> Result<(), ElfLoaderErr>
Copies
region into memory starting at base.
The caller makes sure that there was an allocate call previously
to initialize the region.Source§fn relocate(&mut self, _entry: RelocationEntry) -> Result<(), ElfLoaderErr>
fn relocate(&mut self, _entry: RelocationEntry) -> Result<(), ElfLoaderErr>
Request for the client to relocate the given
entry
within the loaded ELF file.Source§fn tls(
&mut self,
_tdata_start: u64,
_tdata_length: u64,
_total_size: u64,
_align: u64,
) -> Result<(), ElfLoaderErr>
fn tls( &mut self, _tdata_start: u64, _tdata_length: u64, _total_size: u64, _align: u64, ) -> Result<(), ElfLoaderErr>
Inform client about where the initial TLS data is located.
Source§fn make_readonly(
&mut self,
_base: u64,
_size: usize,
) -> Result<(), ElfLoaderErr>
fn make_readonly( &mut self, _base: u64, _size: usize, ) -> Result<(), ElfLoaderErr>
In case there is a
.data.rel.ro section we instruct the loader
to change the passed offset to read-only (this is called after
the relocate calls are completed). Read moreAuto Trait Implementations§
impl Freeze for RoxyElfLoader
impl RefUnwindSafe for RoxyElfLoader
impl Send for RoxyElfLoader
impl Sync for RoxyElfLoader
impl Unpin for RoxyElfLoader
impl UnsafeUnpin for RoxyElfLoader
impl UnwindSafe for RoxyElfLoader
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