Re: is mach_kernel compressed image?
Re: is mach_kernel compressed image?
- Subject: Re: is mach_kernel compressed image?
- From: "Parav Pandit" <email@hidden>
- Date: Fri, 10 Dec 2004 20:43:20 +0530
- 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden