Re: trying to understand otool's inner workings
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, --On 8. Januar 2007 13:04:17 +0100 Sam Hocevar <sam@zoy.org> 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 [...] " [...] 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.:.:.:. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com ...> "/usr/lib/libz.dylib: pgp9UBhZQ8L4x.pgp
participants (1)
-
Sebastian Hagedorn