From d7445e232501ba60fb780f2c18500c0b509fc97e Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Mon, 17 Feb 2025 11:04:35 -0800 Subject: Parse sections containing Objective-C constants This adds support for the `__objc_arrayobj`, `_objc_dictobj`, `__objc_intobj`, `__objc_floatobj`, `__objc_doubleobj` and `__objc_dateobj` sections that contain Objective-C constants. These are emitted by Apple's versions of Clang for `const` literals, amongst other things. --- view/macho/machoview.cpp | 2 +- view/sharedcache/core/SharedCacheController.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'view') diff --git a/view/macho/machoview.cpp b/view/macho/machoview.cpp index e4be6c7b..9244a9c9 100644 --- a/view/macho/machoview.cpp +++ b/view/macho/machoview.cpp @@ -2369,7 +2369,7 @@ bool MachoView::InitializeHeader(MachOHeader& header, bool isMainHeader, uint64_ if (parseCFStrings) { try { - m_objcProcessor->ProcessCFStrings(); + m_objcProcessor->ProcessObjCLiterals(); } catch (std::exception& ex) { diff --git a/view/sharedcache/core/SharedCacheController.cpp b/view/sharedcache/core/SharedCacheController.cpp index 5a5320c3..a9e0937c 100644 --- a/view/sharedcache/core/SharedCacheController.cpp +++ b/view/sharedcache/core/SharedCacheController.cpp @@ -233,7 +233,7 @@ bool SharedCacheController::ApplyImage(BinaryView& view, const CacheImage& image if (m_processObjC) objcProcessor.ProcessObjCData(); if (m_processCFStrings) - objcProcessor.ProcessCFStrings(); + objcProcessor.ProcessObjCLiterals(); } catch (std::exception& e) { -- cgit v1.3.1