From 003072f957498a11b7fdcbb56892af0c281c85b3 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 2 Apr 2025 14:42:55 -0400 Subject: [SharedCache] Misc fixes and comments --- view/sharedcache/core/MachOProcessor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view/sharedcache/core/MachOProcessor.cpp') diff --git a/view/sharedcache/core/MachOProcessor.cpp b/view/sharedcache/core/MachOProcessor.cpp index 565e6d06..7f3da817 100644 --- a/view/sharedcache/core/MachOProcessor.cpp +++ b/view/sharedcache/core/MachOProcessor.cpp @@ -193,6 +193,8 @@ uint64_t SharedCacheMachOProcessor::ApplyHeaderSections(SharedCacheMachOHeader& if (strncmp(section.segname, "__DATA_CONST", sizeof(section.segname)) == 0) semantics = ReadOnlyDataSectionSemantics; + // Typically a view would add auto sections but those won't persist when loading the BNDB. + // if we want to use an auto section here we would need to allow the core to apply auto sections from the database. m_view->AddUserSection(sectionName, section.addr, section.size, semantics, type, section.align); return true; -- cgit v1.3.1