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§
source§impl 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§
source§impl Clone for BaseAddresses
impl Clone for BaseAddresses
source§fn clone(&self) -> BaseAddresses
fn clone(&self) -> BaseAddresses
Returns a copy 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 moresource§impl Debug for BaseAddresses
impl Debug for BaseAddresses
source§impl Default for BaseAddresses
impl Default for BaseAddresses
source§fn default() -> BaseAddresses
fn default() -> BaseAddresses
Returns the “default value” for a type. Read more
source§impl PartialEq for BaseAddresses
impl PartialEq for BaseAddresses
source§fn 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 ==
.impl Eq for BaseAddresses
impl StructuralPartialEq for BaseAddresses
Auto Trait Implementations§
impl Freeze for BaseAddresses
impl RefUnwindSafe for BaseAddresses
impl Send for BaseAddresses
impl Sync for BaseAddresses
impl Unpin for BaseAddresses
impl UnwindSafe for BaseAddresses
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