diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-02 05:32:11 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-02 05:36:54 -0400 |
| commit | e580ba203b265d7b281c6edfc0a797aa8a4e3c38 (patch) | |
| tree | 3daf2a95a8799d3dce70bc11d9948fe1e319497a /view/sharedcache/core | |
| parent | 96c40afe7296aba26ee7fb639517c7f16e137cc6 (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')
| -rw-r--r-- | view/sharedcache/core/MachOProcessor.cpp | 4 |
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); |
