Playing with Mach-O binaries and dyld

from blog LSE Blog, | ↗ original
One cool way to get your hands dirty when discovering something is to try to make it do simple stuff in some stupid/overkill way. When I first had “fun” with the Linux ELF format, I was told to call printf without using it directly, by finding which address to call from inside the binary. For this, one would start from the mapped program header,...