We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb2420 commit 3d6d0d9Copy full SHA for 3d6d0d9
ropgadget/loaders/macho.py
@@ -307,6 +307,8 @@ def getArch(self):
307
return CS_ARCH_ARM64
308
if self.__machHeader.cputype == MACHOFlags.CPU_TYPE_MIPS:
309
return CS_ARCH_MIPS
310
+ if self.__machHeader.cputype == MACHOFlags.CPU_TYPE_POWERPC or self.__machHeader.cputype == MACHOFlags.CPU_TYPE_POWERPC64:
311
+ return CS_ARCH_PPC
312
print("[Error] MACHO.getArch() - Architecture not supported")
313
return None
314
test-suite-binaries/macho-ppc-openssl
440 KB
test-suite-binaries/ref_output.bz2
2.94 KB
0 commit comments