Skip to content

Commit 58bc125

Browse files
committed
[SharedCache] Fix __auth_got section not having read only section semantics
Stopped some stub calls resolving the target
1 parent d455b6e commit 58bc125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

view/sharedcache/core/MachOProcessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ uint64_t SharedCacheMachOProcessor::ApplyHeaderSections(SharedCacheMachOHeader&
176176
semantics = ReadOnlyDataSectionSemantics;
177177
if (strncmp(section.sectname, "__data", sizeof(section.sectname)) == 0)
178178
semantics = ReadWriteDataSectionSemantics;
179-
if (strncmp(section.segname, "__DATA_CONST", sizeof(section.segname)) == 0)
179+
if (strncmp(section.sectname, "__auth_got", sizeof(section.sectname)) == 0)
180180
semantics = ReadOnlyDataSectionSemantics;
181-
if (strncmp(section.segname, "__auth_got", sizeof(section.segname)) == 0)
181+
if (strncmp(section.segname, "__DATA_CONST", sizeof(section.segname)) == 0)
182182
semantics = ReadOnlyDataSectionSemantics;
183183

184184
m_view->AddUserSection(sectionName, section.addr, section.size, semantics, type, section.align);

0 commit comments

Comments
 (0)