pub struct ProgramHeaderTable {
pub offset: u64,
pub entry_size: u16,
pub count: u16,
pub vaddr: Option<u64>,
}Expand description
Where the program header table is, in the file and, when a segment
covers it, in memory. A loader passes the virtual address to the program
as AT_PHDR; libc startup and the dynamic linker walk the table from
there.
Fields§
§offset: u64e_phoff.
entry_size: u16e_phentsize.
count: u16e_phnum.
vaddr: Option<u64>The table’s unrelocated virtual address: what PT_PHDR names, else
the address inside the PT_LOAD segment whose file bytes cover
offset. None when no segment maps it.
Trait Implementations§
Source§impl Clone for ProgramHeaderTable
impl Clone for ProgramHeaderTable
Source§fn clone(&self) -> ProgramHeaderTable
fn clone(&self) -> ProgramHeaderTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgramHeaderTable
Source§impl Debug for ProgramHeaderTable
impl Debug for ProgramHeaderTable
impl Eq for ProgramHeaderTable
Source§impl PartialEq for ProgramHeaderTable
impl PartialEq for ProgramHeaderTable
impl StructuralPartialEq for ProgramHeaderTable
Auto Trait Implementations§
impl Freeze for ProgramHeaderTable
impl RefUnwindSafe for ProgramHeaderTable
impl Send for ProgramHeaderTable
impl Sync for ProgramHeaderTable
impl Unpin for ProgramHeaderTable
impl UnsafeUnpin for ProgramHeaderTable
impl UnwindSafe for ProgramHeaderTable
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