For what is XNU kernel stored in mach-o binary format?
For what is XNU kernel stored in mach-o binary format?
Why not to just store it in a flat binary, load and jump to it? What benefits would I get with a binary format?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
- Alan Kay
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: For what is XNU kernel stored in mach-o binary format?
The reason you normally don't want a flat binary is because it can't provide you with extra load information, such as where certain parts should be loaded. Trying to embed symbols or relocation information into a flat binary so you can print informative stackdumps at runtime becomes seriously troublesome to do.
You might get away with it, but it tends to bite later.
You might get away with it, but it tends to bite later.