From c9dbb48365bf1a0c5c06daa2234e21e64d9bc2f7 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Fri, 13 Feb 2026 18:33:54 -0800 Subject: [DSC] Correctly mark symbols as having local, global, or weak binding --- view/sharedcache/api/sharedcache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'view/sharedcache/api/sharedcache.cpp') 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> CacheSymbol::DemangledName(BinaryView &view) c Ref 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) -- cgit v1.3.1