summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/MachOProcessor.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-02 05:32:11 -0400
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commite580ba203b265d7b281c6edfc0a797aa8a4e3c38 (patch)
tree3daf2a95a8799d3dce70bc11d9948fe1e319497a /view/sharedcache/core/MachOProcessor.cpp
parent96c40afe7296aba26ee7fb639517c7f16e137cc6 (diff)
[SharedCache] Fix __auth_got section not having read only section semantics
Stopped some stub calls resolving the target
Diffstat (limited to 'view/sharedcache/core/MachOProcessor.cpp')
-rw-r--r--view/sharedcache/core/MachOProcessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/sharedcache/core/MachOProcessor.cpp b/view/sharedcache/core/MachOProcessor.cpp
index 0d946680..3de2980d 100644
--- a/view/sharedcache/core/MachOProcessor.cpp
+++ b/view/sharedcache/core/MachOProcessor.cpp
@@ -176,9 +176,9 @@ uint64_t SharedCacheMachOProcessor::ApplyHeaderSections(SharedCacheMachOHeader&
semantics = ReadOnlyDataSectionSemantics;
if (strncmp(section.sectname, "__data", sizeof(section.sectname)) == 0)
semantics = ReadWriteDataSectionSemantics;
- if (strncmp(section.segname, "__DATA_CONST", sizeof(section.segname)) == 0)
+ if (strncmp(section.sectname, "__auth_got", sizeof(section.sectname)) == 0)
semantics = ReadOnlyDataSectionSemantics;
- if (strncmp(section.segname, "__auth_got", sizeof(section.segname)) == 0)
+ if (strncmp(section.segname, "__DATA_CONST", sizeof(section.segname)) == 0)
semantics = ReadOnlyDataSectionSemantics;
m_view->AddUserSection(sectionName, section.addr, section.size, semantics, type, section.align);