XRef
Documentation menu
xrefcode.com / docs / cli / calls

$ xref calls

On this page
  1. Usage
  2. Arguments and options
  3. Examples
  4. Calls 0xa2270
  5. Calls
  6. Calls
  7. Calls
  8. Reading the output
  9. Limits
  10. Provenance

Calls and tail jumps of the function containing an address, in code order.

Inspects incoming call sites, outgoing direct/PLT calls, and register/stack argument values reaching every call to a target function.

Usage

xref calls <ADDR>

Arguments and options

Arguments

<ADDR>
An address inside the function.

Examples

All examples were recorded on public binaries; see Provenance.

Calls 0xa2270

All outgoing direct and PLT calls inside 0xa2270..0xa2566.

Command
$ xref -b xref.stripped calls 0xa2270
Output
function 0xa2270..0xa2566
0xa2406  call 0x126900
0xa2464  call 0x126900
0xa24a0  call 0x126470
0xa24ba  call memcpy via 0x1de5d8
0xa24f1  call 0x1267f0
0xa2500  call 0x126470
0xa2516  call memcpy via 0x1de5d8
0xa2554  call 0x15fe80
0xa2561  call 0x1267c5
9 calls
stderr
xref: load 592.3µs, total 849.7µs

Calls

Command
$ xref -b xref.stripped calls 0xc7d60
Output
function 0xc7d60..0xc7fbf
0xc7e0b  call 0x160550
0xc7e18  call 0x124d50
0xc7f66  call 0xa5e20
0xc7fba  call 0x160bb0
4 calls
stderr
xref: load 519.7µs, total 738.0µs

Calls

Command
$ xref -b xref.stripped calls 0x9a8a0
Output
function 0x9a8a0..0x9a97a
0x9a908  call 0xfb8e0
0x9a954  call 0x15ff61
0x9a966  call 0x15ff61
0x9a975  call 0x15ff61
4 calls
stderr
xref: load 580.2µs, total 794.3µs

Calls

Command
$ xref -b xref.stripped calls 0xfbff0
Output
function 0xfbff0..0xfc159
0xfc12a  call 0x15ff61
0xfc13f  call 0x15ff61
0xfc154  call 0x15ff61
3 calls
stderr
xref: load 429.8µs, total 634.1µs

Reading the output

Limits

Provenance

Recorded with a development build of xref after 0.4.0 on Linux x86-64, on xref.stripped = a stripped xref build (the binary of the home-page examples). Output is unchanged except that whitespace at the end of each line and empty lines at the end of the output are removed; long outputs are cut where marked.

Source: docs/cli/calls.md · generated for the site; edit the Markdown, not this page.