If you mean that you want to know for a compiled and linked executable, you can use nm
lists the symbol table from object files and is usable both with a .o
and with the executable; there are a number of options, see the manual page for details of what is displayed and how to alter what is displayed..
Note that nm
will not show anything for an executable that has been stripped (striped means that the object table is no longer part of the executable); you'd see
nm file: no symbols
in that case.
Hope this helps some.