Re: mach-o section question
Re: mach-o section question
- Subject: Re: mach-o section question
- From: Army Research Lab <email@hidden>
- Date: Fri, 18 Apr 2008 15:41:19 -0400
- Thread-topic: mach-o section question
OK, just started reading it... that is going to take me a while to fully
figure out. If/when I get into trouble, do you mind if I ask you questions?
Thanks,
Cem Karan
On 4/17/08 8:49 PM, "Godfrey van der Linden" <email@hidden> wrote:
> Yeah I agree with Stephen. Reading the mach-o header directly will
> probably be more robust than depending on the output of nm. There is
> some fairly easy to understand code in the kernel sources that parses
> the fat and mach-o headers.
>
> See xnu/libsa/kld_patch.c: kld_file_map(). There is a lot of other
> stuff in there that you don't need but the parsing of the fat and mach-
> o headers are fairly straight forward. I know this code pretty well
> since I wrote it ;-).
>
> Cheers
>
> Godfrey
>
>
> On 2008-04-18, at 0:24 , stephen joseph butler wrote:
>
>> On Wed, Apr 16, 2008 at 9:36 AM, Army Research Lab <email@hidden
>>> wrote:
>> Can anyone fill me in on what those unknown sections are? I briefly
>> looked
>> at the Mac OS X ABI Mach-O File Format Reference
>> (http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORun
>> time/Reference/reference.html), which is where I got the few
>> definitions I
>> have above, but I'd like to know more.
>>
>> Have you checked the headers in /usr/include/mach-o/? Poking around
>> loader.h, I see defines for some of your sections with some quick
>> comments. There might be more information hidden in other files.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Darwin-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden