find_xrefs_in_file
Scans a binary file section for call, jump, and operand references to a given address, enabling cross-reference analysis for reverse engineering.
Instructions
Find all cross-references to a target address in a binary file's section.
Scans the specified section for all instructions that reference the target address via call, jump, immediate operand, or memory displacement.
Args: file_path: Absolute path to the binary file. target_address: Target address to find references to (hex string, e.g. "0x401000"). section_name: Section to scan. Default: ".text". arch: CPU architecture. Auto-detected if omitted.
Returns: List of cross-references with source address, type, and instruction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target_address | Yes | ||
| section_name | No | .text | |
| arch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |