diff options
Diffstat (limited to 'rust/src/symbol.rs')
| -rw-r--r-- | rust/src/symbol.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/src/symbol.rs b/rust/src/symbol.rs index 0e90c15c..bb9d157e 100644 --- a/rust/src/symbol.rs +++ b/rust/src/symbol.rs @@ -275,6 +275,13 @@ impl Symbol { pub fn external(&self) -> bool { self.binding() == Binding::Weak || self.binding() == Binding::Global } + + pub fn imported_function_from_import_address_symbol(sym: &Symbol, addr: u64) -> Ref<Symbol> { + unsafe { + let res = BNImportedFunctionFromImportAddressSymbol(sym.handle, addr); + Symbol::ref_from_raw(res) + } + } } unsafe impl Send for Symbol {} |
