How to find out the names of uncalled functions from object files that are dynamically linked?



I want to find out the unused function names from the object files that
are dynamically linked later. Please tell me some tool to generate the
call graph. gprof cannot be used since the program is not run.
[I tend to use pipelines of nm, sed, and comm -John]


.