From edcba9286268656ee3c5594051263c51c1011f39 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 13 Feb 2025 20:28:29 -0500 Subject: [SharedCache] Split out symbol processing into own function Split out from https://github.com/WeiN76LQh/binaryninja-api/tree/process-local-symbols --- view/sharedcache/core/SharedCache.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'view/sharedcache/core/SharedCache.h') diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h index ee4228ef..c683806c 100644 --- a/view/sharedcache/core/SharedCache.h +++ b/view/sharedcache/core/SharedCache.h @@ -643,7 +643,10 @@ private: std::shared_ptr linkeditFile, const SharedCacheMachOHeader& header); std::shared_ptr>> GetExportListForHeader(std::lock_guard&, const SharedCacheMachOHeader& header, std::function()> provideLinkeditFile, bool* didModifyExportList = nullptr); - std::shared_ptr>> GetExistingExportListForBaseAddress(std::lock_guard&, uint64_t baseAddress) const; + std::shared_ptr>> GetExistingExportListForBaseAddress(std::lock_guard&, uint64_t baseAddress) const; + void ProcessSymbols(std::shared_ptr file, const SharedCacheMachOHeader& header, + uint64_t stringsOffset, size_t stringsSize, uint64_t nlistEntriesOffset, uint32_t nlistCount, uint32_t nlistStartIndex = 0); + void ApplySymbol(Ref view, Ref typeLib, Ref symbol); void ProcessAllObjCSections(std::lock_guard&); bool LoadImageWithInstallName(std::lock_guard&, std::string installName, bool skipObjC); -- cgit v1.3.1