pub struct ElfWriterConfig {
pub base_addr: u64,
pub page_size: u64,
pub ifunc_resolver_val: Option<u64>,
}Fields§
§base_addr: u64Base address for memory mapping (default: 0x400000)
page_size: u64Page size for alignment (default: 0x1000)
ifunc_resolver_val: Option<u64>Custom value for IFUNC resolver to return (default: None, returns PLT0 address)
Implementations§
Source§impl ElfWriterConfig
impl ElfWriterConfig
Sourcepub fn with_base_addr(self, addr: u64) -> Self
pub fn with_base_addr(self, addr: u64) -> Self
Set custom base address
Sourcepub fn with_page_size(self, size: u64) -> Self
pub fn with_page_size(self, size: u64) -> Self
Set custom page size
Sourcepub fn with_ifunc_resolver_val(self, val: u64) -> Self
pub fn with_ifunc_resolver_val(self, val: u64) -> Self
Set custom IFUNC resolver return value
Trait Implementations§
Source§impl Clone for ElfWriterConfig
impl Clone for ElfWriterConfig
Source§fn clone(&self) -> ElfWriterConfig
fn clone(&self) -> ElfWriterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElfWriterConfig
impl RefUnwindSafe for ElfWriterConfig
impl Send for ElfWriterConfig
impl Sync for ElfWriterConfig
impl Unpin for ElfWriterConfig
impl UnwindSafe for ElfWriterConfig
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