Monday, August 9, 2010

List functions in a library, object, or executable

The nm command may be used to list the symbol table in any object file (including static libraries, shared objects,  and executables). The symbol table includes global variables and public functions.
nm myexe
nm libxyz.a
See the nm man page for more information.