function call graph which includes functions from external loaded libraries #21586
Replies: 2 comments 1 reply
-
isn't agC doing what you want? do you need the json representation? see the help of ag? to render the output in the format you are interested:
|
Beta Was this translation helpful? Give feedback.
-
hello, I need the call graph of the binary to show also the calls inside the imported functions from shared libs. hope this give a better explanation of what I need ... |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm trying to produce a graph with all the function calls within a binary including the call graph of the used functions from external libraries.
example:
I have a binary which calls printf from libc.so.6, all the commands ("aaa"/"aaf"/"aaaa" including debugging and lazy linkage, "dcu main", "search.path /lib/aarch64-linux-gnu/libc.so.6") I tried gave me this graph or a bigger with printf as a leaf, after calling aaa and agCj:
[{"name":"entry0","size":48,"imports":["sym.imp.__libc_start_main"]},{"name":"sym.__do_global_dtors_aux","size":72,"imports":["sym.imp.__cxa_finalize","sym.deregister_tm_clones"]},{"name":"sym.print_life_rank","size":40,"imports":["sym.imp.printf"]},{"name":"sym.bar","size":48,"imports":["sym.print_life_rank","sym.imp.puts"]},{"name":"sym.foo","size":40,"imports":["sym.imp.printf"]},{"name":"main","size":140,"imports":["sym.imp.puts","sym.bar","sym.print_life_rank"]},{"name":"sym._init","size":24,"imports":["sym.call_weak_fn"]}]
when using "il" radare shows libc.so.6 as an imported library, it also shows using "dmi"
what I'm interested in is also the printf function's call grap (functions called by printf such as "__stack_chk_fail"), how can I do that?
thank you!
Beta Was this translation helpful? Give feedback.
All reactions