From e580ba203b265d7b281c6edfc0a797aa8a4e3c38 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 2 Apr 2025 05:32:11 -0400 Subject: [SharedCache] Fix __auth_got section not having read only section semantics Stopped some stub calls resolving the target --- view/sharedcache/core/MachOProcessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/sharedcache/core/MachOProcessor.cpp') 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); -- cgit v1.3.1