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

D

dreamer29

I want to find out the unused function names from the object files that
are dynamically linked later.the object files are generated from C
code.
Please tell me some tool to generate the call graph.gprof cannot be
used since the program is not run.
 
F

Flash Gordon

I want to find out the unused function names from the object files that
are dynamically linked later.the object files are generated from C
code.
Please tell me some tool to generate the call graph.gprof cannot be
used since the program is not run.

Whether the object files are generated from C, B, D or any other
language does not make a difference. This is a question about tools for
your specific system, so please ask on a group dealing with your system
rather than a group dealing only with standard C.
 
C

Chandra Kalle

On UNIX/Linux systems you can use 'nm <your executable>' to look at the
symbol table
in your executable. It will show you each symbol and it's description.
Symbols
starting with a 'U' (undefined) will be resolved by the runtime link
loader and they
are what you're looking for.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top