From c5df1bf9d788344192b1a63690d8d5845b713f29 Mon Sep 17 00:00:00 2001 From: kat Date: Tue, 4 Jun 2024 10:59:44 -0400 Subject: [Mach-O] Fix issue where imported symbols did not have relocations applied, Fix an issue with binding opcode 0xC0 --- view/macho/machoview.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'view/macho/machoview.h') diff --git a/view/macho/machoview.h b/view/macho/machoview.h index 8dd5328d..240dcc54 100644 --- a/view/macho/machoview.h +++ b/view/macho/machoview.h @@ -1238,6 +1238,8 @@ namespace BinaryNinja std::vector> entryPoints; std::vector m_entryPoints; //list of entrypoints + std::vector> externalRelocations; + symtab_command symtab; dysymtab_command dysymtab; dyld_info_command dyldInfo; @@ -1345,7 +1347,7 @@ namespace BinaryNinja BNSymbolBinding binding); bool GetSectionPermissions(MachOHeader& header, uint64_t address, uint32_t &flags); bool GetSegmentPermissions(MachOHeader& header, uint64_t address, uint32_t &flags); - void ParseChainedFixups(linkedit_data_command chainedFixups); + void ParseChainedFixups(MachOHeader& header, linkedit_data_command chainedFixups); virtual uint64_t PerformGetEntryPoint() const override; -- cgit v1.3.1