Re: How to determine libraries and symbols imported by an executable?
Re: How to determine libraries and symbols imported by an executable?
- Subject: Re: How to determine libraries and symbols imported by an executable?
- From: email@hidden (William Lewis)
- Date: Thu, 15 Feb 2007 14:16:11 -0800 (PST)
>I wanted to list all the libraries and symbols imported by an
>executable, sort of the inverse of nm. I found otool, but I'm not
>quite sure how to get it to list all the imported symbols (I can
>see some imported dylibs).
nm will show the symbols referenced by an object --- they're marked 'U'
(for undefined). This includes symbols that are defined in some dylib
or framework that the object loads. For example, you can run it
on TextEdit.app's executable, and see all the ObjC static class references
(symbols that look like ".objc_class_name_NSArray") as well as the
C-language symbols (functions and variables).
You can use "-g -u" to only show the global, undefined symbols --- see
the nm man page.
"otool -L" will show frameworks directly referenced by something. You
can use the DYLD_foo environment variables if you want to see all
of the frameworks pulled in by a program as it runs.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden