Reputation: 23460
What are the ways to find all callers (symbol names) of a particular function / symbol using only the compilation unit? How to find from a compilation unit which library included in that unit was a symbol defined in?
Upvotes: 2
Views: 390
Reputation: 272487
If you're looking for calls to a function called func
in an object file called obj.o
, then:
objdump -dCS .text obj.o | grep func
Obviously, you can't find incoming calls this way.
Upvotes: 2