Hacker News new | past | comments | ask | show | jobs | submit login
Mach-O Tricks [pdf] (iokit.racing)
65 points by supro on June 23, 2018 | hide | past | favorite | 1 comment

Another interesting fact: Mach-O also specifies "fat" or universal binaries, which are just a packed collection of Mach-O binaries with a special header and magic value (CAFEBABE for big-endian, like a Java classfile). The loader reads this special header, seeks to the right cpu(sub)type, and the rest is the same as a "thin" Mach-O.

Source: I wrote a Mach-O parser for the Homebrew project[1].

[1]: https://github.com/Homebrew/ruby-macho

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact