The load commands immediately after the mach_header will tell you where in the image the segments are. It will be much safer to use this information than simply assume that __TEXT is the first segment.
Nick On 09/11/2011, at 4:24 AM, José Cornado wrote: In this case: are there any changes to mach_header that let us know the non-standard segments are coming? do they have to provide the specific data types in header files?
2011/11/8 Shantonu Sen <email@hidden>
No, it's not safe to assume that, especially with custom binaries that create custom segments (which might appear before __TEXT)
On Nov 8, 2011, at 8:40 AM, José Cornado wrote: Is it safe to assume that after mach_header comes segment_command(page zero) then segment_command(TEXT) or probing as we read the binary is mandatory?
-- José Cornado -- home: http://www.efekctive.com
blog: http://blogging.efekctive.com---------------------- Everything has been said before, but since nobody listens we have to keep going back and beginning all over again.
Andre Gide
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden)
This email sent to email@hidden
-- José Cornado
--
home: http://www.efekctive.com
blog: http://blogging.efekctive.com ----------------------
Everything has been said before, but since nobody listens we have to keep going back and beginning all over again.
Andre Gide
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
|