Re: is mach_kernel compressed image?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Importance: Normal Hi, I got the answer, What I did is, I used the otool -h option on kernel image /mach_kernel. example: otool -h /mach_kernel. This prints mach-o header of the file. And output tells that file type is 0x2. If we look in to the osfmsk/mach-o/loader.h file, this 0x2 corresponds to MH_EXECUTE and flags are set to MH_NOUNDEFS which is obvious thing for kernel. Thanks, Parav Pandit
As we all know /mach_kernel is the xnu kernel. Is this image is a compressed image of the kernel? If it is compressed image than what compression algorithm is used? where can i find a code for decompression? Should I look in BootX or somewhere else?
Regards, Parav Pandit _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Parav Pandit