pub struct Symbol {
pub name: String,
pub kind: SymbolKind,
pub addr: u32,
pub ambiguous: bool,
pub local: bool,
}Fields§
§name: String§kind: SymbolKind§addr: u32§ambiguous: boolIf true, this symbol is involved in an ambiguous external reference to one of many overlays
local: boolIf true, this symbol is local to its translation unit and will not cause duplicate symbol definitions in the linker
Implementations§
Source§impl Symbol
impl Symbol
pub fn from_function(function: &Function) -> Self
pub fn new_unknown_function(name: String, addr: u32, thumb: bool) -> Self
pub fn new_label(name: String, addr: u32, thumb: bool) -> Self
pub fn new_external_label(name: String, addr: u32, thumb: bool) -> Self
pub fn new_pool_constant(name: String, addr: u32) -> Self
pub fn new_jump_table(name: String, addr: u32, size: u32, code: bool) -> Self
pub fn new_data( name: String, addr: u32, data: SymData, ambiguous: bool, ) -> Symbol
pub fn new_bss(name: String, addr: u32, data: SymBss, ambiguous: bool) -> Symbol
pub fn size(&self, max_address: u32) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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