pub struct Symbol<'data, const DYNAMIC: bool = false> {
pub delete: bool,
pub name: ByteString<'data>,
pub section: Option<SectionId>,
pub st_info: u8,
pub st_other: u8,
pub st_shndx: u16,
pub st_value: u64,
pub st_size: u64,
pub version: VersionId,
pub version_hidden: bool,
/* private fields */
}
Expand description
A symbol in Symbols
.
This corresponds to elf::Sym32
or elf::Sym64
.
Fields§
§delete: bool
Ignore this symbol when writing the ELF file.
name: ByteString<'data>
The name of the symbol.
section: Option<SectionId>
The section referenced by the symbol.
Used to set the st_shndx
field in the ELF symbol.
st_info: u8
The st_info
field in the ELF symbol.
st_other: u8
The st_other
field in the ELF symbol.
st_shndx: u16
The st_shndx
field in the ELF symbol.
Only used if Self::section
is None
.
st_value: u64
The st_value
field in the ELF symbol.
st_size: u64
The st_size
field in the ELF symbol.
version: VersionId
GNU version for dynamic symbols.
Set the elf::VERSYM_HIDDEN
flag for this symbol.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'data, const DYNAMIC: bool> Freeze for Symbol<'data, DYNAMIC>
impl<'data, const DYNAMIC: bool> RefUnwindSafe for Symbol<'data, DYNAMIC>
impl<'data, const DYNAMIC: bool> Send for Symbol<'data, DYNAMIC>
impl<'data, const DYNAMIC: bool> Sync for Symbol<'data, DYNAMIC>
impl<'data, const DYNAMIC: bool> Unpin for Symbol<'data, DYNAMIC>
impl<'data, const DYNAMIC: bool> UnwindSafe for Symbol<'data, DYNAMIC>
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