<div dir="ltr"><div class="gmail-post-text">
<p>I wrote a module pass to generate a call graph. I want to generate
call graph which would consist of all the functions like the functions
in the user code as well as the functions in the libraries. </p>
<p>To be more specific, I am working with binutils 2.26 <a href="https://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz" rel="nofollow noreferrer">https://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz</a> </p>
<p>I want to generate the call graph for 'objdump'. The code of the
objdump would call some functions in the library 'libiberty' these
called functions in the library can call more internal functions inside
the library. </p>
<p>I want a call graph which will include all such functions. </p>
<p>One way to do is that I can emit llvm code for all the files in the
library as well as the user code in separate .ll files. And then finally
combine them using llvm-link.
But this may fail if there are dependencies here and there. So can I do
this systematically by making some changes in <strong>configure file</strong> or <strong>makefile</strong> without disturbing any dependencies. </p>
<p>Any help is highly appreciated.</p>
</div><div><div class="gmail_signature"><div dir="ltr"><span>Thanks and regards<div>-Ketan Patil</div></span></div></div></div>
</div>