Re:Mach-O Binaries (2015)
by woodruffw on Monday August 07, 2023 @05:20PM
(#37041109)
This is a nice writeup, especially the part about the import binding FSA! These kinds of little state machines show in all sorts of image format and image format-adjacent places, like DWARF's line program[1] and location expression encoding.
(Having written parsers for all three, I think Mach-O is the best "major" program image format. It's certainly the most well abstracted.)
Re:Mach-O Binaries (2015)
by detourdog on Monday August 07, 2023 @05:48PM
(#37041413)
Yes, I enjoyed the write-up. I think for the same reasons as you. I found it easy to trace the program control through successive library loading. I have always been excited about Apple optimizing it's silicon for the abstractions used by mach.
(Having written parsers for all three, I think Mach-O is the best "major" program image format. It's certainly the most well abstracted.)
[1]: https://swatinem.de/blog/dwarf-lines/