[PATCH] D107029: [llvm-objdump][CallGraphInfo] Add CallGraphInfo option, extract functions

Necip Fazil Yildiran via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 28 21:50:23 PDT 2021


necipfazil created this revision.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
necipfazil requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add llvm-objdump --call-graph-info option to disassemble the binary and parse
the .callgraph section for call graph information.

This patch extracts and prints function entry address to name mapping.
This can be used to annotate function nodes on a reconstructed call
graph. Upcoming patches will add the rest of the functionality (call
site info and .callgraph section parsing).

Patch 2/6: Extract call graph information from binary

Original RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151044.html
Updated RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-July/151739.html


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107029

Files:
  llvm/docs/CommandGuide/llvm-objdump.rst
  llvm/test/tools/llvm-objdump/ELF/call-graph-info-functions.test
  llvm/test/tools/llvm-objdump/ELF/call-graph-info.test
  llvm/tools/llvm-objdump/ObjdumpOpts.td
  llvm/tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107029.362625.patch
Type: text/x-patch
Size: 27849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/38a3b56b/attachment.bin>


More information about the llvm-commits mailing list