pub struct FunctionSymbol {
pub address: u64,
pub name: Option<String>,
pub size: Option<u64>,
pub is_external: bool,
pub library: Option<String>,
}Expand description
A known function start address extracted from an ELF symbol table.
Fields§
§address: u64Virtual address of the function.
name: Option<String>Name from the string table, if present.
size: Option<u64>st_size when the symbol table records a non-zero one. None for
PLT stubs, .eh_frame starts, and assembly symbols with no .size.
is_external: boolWhether this is an external (imported) function stub (e.g. a PLT thunk).
library: Option<String>For an external stub, the shared library its symbol-version requirement
(.gnu.version_r) names, e.g. libc.so.6. None for unversioned
imports (the format does not tie those to a specific DT_NEEDED entry).
Trait Implementations§
Source§impl Clone for FunctionSymbol
impl Clone for FunctionSymbol
Auto Trait Implementations§
impl Freeze for FunctionSymbol
impl RefUnwindSafe for FunctionSymbol
impl Send for FunctionSymbol
impl Sync for FunctionSymbol
impl Unpin for FunctionSymbol
impl UnsafeUnpin for FunctionSymbol
impl UnwindSafe for FunctionSymbol
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