summaryrefslogtreecommitdiff
path: root/view/macho/machoview.h
diff options
context:
space:
mode:
authorBrandon Miller <brandon@vector35.com>2025-04-02 11:24:06 -0400
committerBrandon Miller <brandon@vector35.com>2025-04-03 07:03:33 -0400
commitfd1ac8a1cf3c05ccdbf8762e22e9b7f01bd2abd4 (patch)
tree29e54b50b3e8a741f78e1f0d575473f0eb6ff8e0 /view/macho/machoview.h
parent67e5ac0aa51db4fd52da786a6227c8bc649814e5 (diff)
Fix user platform override between armv7 and thumb
Only override the default platform based on the entry point architecture in cases where the user didn't explicitly set loader.platform
Diffstat (limited to 'view/macho/machoview.h')
-rw-r--r--view/macho/machoview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/macho/machoview.h b/view/macho/machoview.h
index 11a17bff..787ae36b 100644
--- a/view/macho/machoview.h
+++ b/view/macho/machoview.h
@@ -1472,7 +1472,8 @@ namespace BinaryNinja
std::vector<section_64> m_allSections;
MachOHeader HeaderForAddress(BinaryView* data, uint64_t address, bool isMainHeader, std::string identifierPrefix = "");
- bool InitializeHeader(MachOHeader& header, bool isMainHeader, uint64_t preferredImageBase, std::string preferredImageBaseDesc);
+ bool InitializeHeader(MachOHeader& header, bool isMainHeader, uint64_t preferredImageBase,
+ std::string preferredImageBaseDesc, bool platformSetByUser);
void RebaseThreadStarts(BinaryReader& virtualReader, std::vector<uint32_t>& threadStarts, uint64_t stepMultiplier);
Ref<Symbol> DefineMachoSymbol(