Struct goblin::elf::section_header::section_header64::SectionHeader [−][src]
Section Headers are typically used by humans and static linkers for additional information or how to relocate the object
NOTE section headers are strippable from a binary without any loss of portability/executability; do not rely on them being there!
Fields
sh_name: u32
Section name (string tbl index)
sh_type: u32
Section type
sh_flags: u64
Section flags
sh_addr: u64
Section virtual addr at execution
sh_offset: u64
Section file offset
sh_size: u64
Section size in bytes
sh_link: u32
Link to another section
sh_info: u32
Additional section information
sh_addralign: u64
Section alignment
sh_entsize: u64
Entry size if section holds table
Implementations
impl SectionHeader
[src]
pub fn from_bytes(bytes: &[u8], shnum: usize) -> Vec<SectionHeader>
[src]
pub fn from_fd(
fd: &mut File,
offset: u64,
shnum: usize
) -> Result<Vec<SectionHeader>>
[src]
fd: &mut File,
offset: u64,
shnum: usize
) -> Result<Vec<SectionHeader>>
Trait Implementations
impl Clone for SectionHeader
[src]
fn clone(&self) -> SectionHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SectionHeader
[src]
impl Debug for SectionHeader
[src]
impl Default for SectionHeader
[src]
fn default() -> SectionHeader
[src]
impl Eq for SectionHeader
[src]
impl From<SectionHeader> for ElfSectionHeader
[src]
fn from(sh: SectionHeader) -> Self
[src]
impl From<SectionHeader> for SectionHeader
[src]
fn from(sh: ElfSectionHeader) -> Self
[src]
impl PartialEq<SectionHeader> for SectionHeader
[src]
fn eq(&self, other: &SectionHeader) -> bool
[src]
fn ne(&self, other: &SectionHeader) -> bool
[src]
impl Plain for SectionHeader
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
[src]
pub fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
[src]
pub fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
[src]
pub fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
[src]
pub fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
[src]
pub fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
[src]
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
pub fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
[src]
impl SizeWith<Endian> for SectionHeader
[src]
impl StructuralEq for SectionHeader
[src]
impl StructuralPartialEq for SectionHeader
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for SectionHeader where
SectionHeader: 'a,
[src]
SectionHeader: 'a,
type Error = Error
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
impl<'a> TryIntoCtx<Endian, [u8]> for &'a SectionHeader
[src]
type Error = Error
fn try_into_ctx(self, dst: &mut [u8], ctx: Endian) -> Result<usize, Self::Error>
[src]
impl TryIntoCtx<Endian, [u8]> for SectionHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for SectionHeader
impl Send for SectionHeader
impl Sync for SectionHeader
impl Unpin for SectionHeader
impl UnwindSafe for SectionHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,