diff options
Diffstat (limited to 'view/kernelcache/core/MachOProcessor.cpp')
| -rw-r--r-- | view/kernelcache/core/MachOProcessor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/view/kernelcache/core/MachOProcessor.cpp b/view/kernelcache/core/MachOProcessor.cpp index 42faba24..fb3d2b27 100644 --- a/view/kernelcache/core/MachOProcessor.cpp +++ b/view/kernelcache/core/MachOProcessor.cpp @@ -193,8 +193,9 @@ uint64_t KernelCacheMachOProcessor::ApplyHeaderSections(KernelCacheMachOHeader& semantics = ReadWriteDataSectionSemantics; if (strncmp(section.sectname, "__auth_got", sizeof(section.sectname)) == 0) semantics = ReadOnlyDataSectionSemantics; - if (strncmp(section.segname, "__DATA_CONST", sizeof(section.segname)) == 0) - semantics = ReadOnlyDataSectionSemantics; + + if (auto overriddenSemantics = SectionSemanticsForSection(section)) + semantics = static_cast<BNSectionSemantics>(overriddenSemantics); // 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. |
