On Feb 15, 2007, at 2:02 PM, Rick Mann wrote: I wanted to list all the libraries and symbols imported by an executable, sort of the inverse of nm.
nm cal list imports, too:
nm -ufm /Applications/Utilities/Grab.app/Contents/MacOS/Grab (undefined [lazy bound]) external .objc_class_name_NSApplication (from AppKit) (undefined [lazy bound]) external .objc_class_name_NSArray (from Foundation) (undefined [lazy bound]) external .objc_class_name_NSAutoreleasePool (from Foundation) (undefined [lazy bound]) external .objc_class_name_NSBitmapImageRep (from AppKit) (undefined [lazy bound]) external .objc_class_name_NSBundle (from Foundation) (undefined [lazy bound]) external .objc_class_name_NSCachedImageRep (from AppKit) (undefined [lazy bound]) external .objc_class_name_NSClipView (from AppKit) (undefined [lazy bound]) external .objc_class_name_NSColor (from AppKit) (undefined) external _CGRectZero (from ApplicationServices) (undefined) external _mach_init_routine (from libSystem) (undefined [lazy bound]) external _malloc (from libSystem) (undefined [lazy bound]) external _memcmp (from libSystem) (undefined [lazy bound]) external _objc_lookUpClass (from Foundation) (undefined [lazy bound]) external _objc_msgSend (from Foundation) (undefined [lazy bound]) external _objc_msgSendSuper (from Foundation) (undefined [lazy bound]) external _objc_msgSend_stret (from Foundation)
etc.
Chris |