How to read Mach-O header from object file?
I have spent the past few days experimenting with assembly, and now understand the relationship between assembly and machine code (using x86 via NASM on OSX, reading the Intel docs ). Now I am trying to understand the details of how the linker works, and specifically want to understand the structure of Mach-O object files, starting with the Mach-O headers. My question is, can you map out how the Mach-O headers below map to the otool command output (which displays the headers, but they are in a different format)? Some reasons for this question include: It will help me see how the documents on