Search found 3 matches

by liamxx
Thu Feb 01, 2018 11:42 pm
Forum: Technical questions
Topic: MacOS Mach-O executable fails to save at WriteToFile
Replies: 6
Views: 7088

Re: MacOS Mach-O executable fails to save at WriteToFile

After dissecting a working executable and the broken one, I can see what you mean: https://image.prntscr.com/image/EJeR-paEQyqThgHoQATHGw.png Optimizations definitely delete most of the free space in the header. It was only until I removed the -O2 flag for my program (replacing it with -O1 which onl...
by liamxx
Thu Feb 01, 2018 9:35 am
Forum: Technical questions
Topic: MacOS Mach-O executable fails to save at WriteToFile
Replies: 6
Views: 7088

Re: MacOS Mach-O executable fails to save at WriteToFile

After careful investigation, I have discovered that my application will ONLY compile if all optimizations (-O2, in my case) and loader paths are not changed. Before I protect my application, I use install_name_tool to fix the loader paths to some libraries and -O2 to increase performance and decreas...
by liamxx
Thu Feb 01, 2018 7:46 am
Forum: Technical questions
Topic: MacOS Mach-O executable fails to save at WriteToFile
Replies: 6
Views: 7088

MacOS Mach-O executable fails to save at WriteToFile

I am attempting to protect a Mach-O executable VMProtect, but when it gets to the "saving startup code" stage it will fail with the output file disappearing at any arbitrary point in the process. I have attempted to fix this by testing a variety of settings with no luck. Currently, I have ...