summaryrefslogtreecommitdiff
path: root/view/sharedcache/api/sharedcache.cpp
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2026-02-13 18:33:54 -0800
committerMark Rowe <mark@vector35.com>2026-02-13 19:42:13 -0800
commitc9dbb48365bf1a0c5c06daa2234e21e64d9bc2f7 (patch)
treedd476df611f5d74590d48afb869896670a8f560c /view/sharedcache/api/sharedcache.cpp
parente2feac85c58785640a2760f137a44c08ef953931 (diff)
[DSC] Correctly mark symbols as having local, global, or weak binding
Diffstat (limited to 'view/sharedcache/api/sharedcache.cpp')
-rw-r--r--view/sharedcache/api/sharedcache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/sharedcache/api/sharedcache.cpp b/view/sharedcache/api/sharedcache.cpp
index d1ec680d..d90f2799 100644
--- a/view/sharedcache/api/sharedcache.cpp
+++ b/view/sharedcache/api/sharedcache.cpp
@@ -107,6 +107,7 @@ CacheSymbol SymbolFromApi(BNSharedCacheSymbol apiSymbol)
symbol.name = apiSymbol.name;
symbol.address = apiSymbol.address;
symbol.type = apiSymbol.symbolType;
+ symbol.binding = apiSymbol.symbolBinding;
return symbol;
}
@@ -140,7 +141,7 @@ std::pair<std::string, Ref<Type>> CacheSymbol::DemangledName(BinaryView &view) c
Ref<Symbol> CacheSymbol::GetBNSymbol(BinaryView &view) const
{
auto [shortName, _] = DemangledName(view);
- return new Symbol(type, shortName, shortName, name, address, nullptr);
+ return new Symbol(type, shortName, shortName, name, address, binding);
}
std::string SharedCacheAPI::GetSymbolTypeAsString(const BNSymbolType &type)