Re: trying to understand otool's inner workings
Re: trying to understand otool's inner workings
- Subject: Re: trying to understand otool's inner workings
- From: Sebastian Hagedorn <email@hidden>
- Date: Mon, 08 Jan 2007 13:11:44 +0100
Hi,
--On 8. Januar 2007 13:04:17 +0100 Sam Hocevar <email@hidden> wrote:
I am trying to understand how otool reads binaries. I traced it with
ktrace, but the information is pretty meager:
% ktrace -d -t cnisuw otool -d /usr/lib/libz.dylib
/usr/lib/libz.dylib:
[...]
% kdump
[...]
...> "/usr/lib/libz.dylib:
"
[...]
So, according to the kdump, otool only does an fstat() between the
open() and close() calls. Surely this is not sufficient to read the
__DATA section, is it? Or does fstat() also cause the kernel to load the
file in memory? Any idea how I could know what otool does to read the
file that ktrace is not aware of? Is there another tool that I can use
instead of ktrace that will give me more information?
use the source:
<http://www.opensource.apple.com/darwinsource/10.4.8.ppc/cctools-622.5.1/otool/>
--
.:.Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18.:.
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
.:.Universität zu Köln / Cologne University - ✆ +49-221-478-5587.:.
.:.:.:.Skype: shagedorn.:.:.:.
Attachment:
pgp9UBhZQ8L4x.pgp
Description: PGP signature
_______________________________________________
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