Struct gimli::read::BaseAddresses
source · [−]pub struct BaseAddresses {
pub eh_frame_hdr: SectionBaseAddresses,
pub eh_frame: SectionBaseAddresses,
}
Expand description
Optional base addresses for the relative DW_EH_PE_*
encoded pointers.
During CIE/FDE parsing, if a relative pointer is encountered for a base address that is unknown, an Err will be returned.
use gimli::BaseAddresses;
let bases = BaseAddresses::default()
.set_eh_frame_hdr(address_of_eh_frame_hdr_section_in_memory)
.set_eh_frame(address_of_eh_frame_section_in_memory)
.set_text(address_of_text_section_in_memory)
.set_got(address_of_got_section_in_memory);
Fields
eh_frame_hdr: SectionBaseAddresses
The base addresses to use for pointers in the .eh_frame_hdr
section.
eh_frame: SectionBaseAddresses
The base addresses to use for pointers in the .eh_frame
section.
Implementations
sourceimpl BaseAddresses
impl BaseAddresses
sourcepub fn set_eh_frame_hdr(self, addr: u64) -> Self
pub fn set_eh_frame_hdr(self, addr: u64) -> Self
Set the .eh_frame_hdr
section base address.
sourcepub fn set_eh_frame(self, addr: u64) -> Self
pub fn set_eh_frame(self, addr: u64) -> Self
Set the .eh_frame
section base address.
Trait Implementations
sourceimpl Clone for BaseAddresses
impl Clone for BaseAddresses
sourcefn clone(&self) -> BaseAddresses
fn clone(&self) -> BaseAddresses
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BaseAddresses
impl Debug for BaseAddresses
sourceimpl Default for BaseAddresses
impl Default for BaseAddresses
sourcefn default() -> BaseAddresses
fn default() -> BaseAddresses
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BaseAddresses> for BaseAddresses
impl PartialEq<BaseAddresses> for BaseAddresses
sourcefn eq(&self, other: &BaseAddresses) -> bool
fn eq(&self, other: &BaseAddresses) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BaseAddresses) -> bool
fn ne(&self, other: &BaseAddresses) -> bool
This method tests for !=
.
impl Eq for BaseAddresses
impl StructuralEq for BaseAddresses
impl StructuralPartialEq for BaseAddresses
Auto Trait Implementations
impl RefUnwindSafe for BaseAddresses
impl Send for BaseAddresses
impl Sync for BaseAddresses
impl Unpin for BaseAddresses
impl UnwindSafe for BaseAddresses
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more