How to compile existing dynamic library to 64 bit compatible for mac platform. I don't have code base for library, have only xxx.dylib.
file xxx.dylib
xxx.dylib: Mach-O universal binary with 2 architectures: [ppc:Mach-O dynamically linked shared library ppc] [i386:Mach-O dynamically linked shared library i386] xxx.dylib (for architecture ppc): Mach-O dynamically linked shared library ppc xxx.dylib (for architecture i386): Mach-O dynamically linked shared library i386
You can't. There's no way to recompile the dylib to 64bit without the original source code.
Worse, even some crazy binary post processing is not really feasible.
The dylib is in
Mach-ofinal fat binary executable format. The main challenges are:i386slice - you can't effortlessly convert those tox86-64, this would be effectively a different binary0x1000origin of virtual memory for__TEXTstart (that would typically be0x1000000in x86-64), you maybe could get away with it the dylib turns to be not using ASLR / PIE , but still that's very likely to breakMach-Oload commands, eventually some might stop being supported by the kernel