[llvm] [docs][llvm-readobj] Document the --call-graph-info output format (PR #227386)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 01:21:56 PDT 2026


================
@@ -16,3 +16,130 @@ Each record in the `.llvm.callgraph` section has the following binary layout:
 | Direct Callees Array                   | `uintptr_t[]` | Variable    | An array of unique direct callee entry point addresses. This field is only present if there is at least one direct callee. |
 | Number of Unique Indirect Target Type IDs| `ULEB128`     | Variable    | The number of unique indirect call target type IDs. This field is only present if there is at least one indirect target type ID. |
 | Indirect Target Type IDs Array         | `uint64_t[]`  | Variable    | An array of unique indirect call target type IDs. This field is only present if there is at least one indirect target type ID. |
+
+## Dumping with llvm-readobj
----------------
jh7370 wrote:

It would be worth a cross-reference from the llvm-readobj (and llvm-readelf) Command Guide to here, under the `--call-graph-info` option description.

https://github.com/llvm/llvm-project/pull/227386


More information about the llvm-commits mailing list