ExportAddressRefs
Tool
tools/ghidra/ExportAddressRefs.java(ghidra, Ghidra scripts). Export direct references and their containing functions for selected Ghidra addresses.
A Ghidra script: scripts/ghidra-export.sh and scripts/ghidra-run.sh run it headless. Source on GitHub.
Its own help
This is the help text in the tool itself, as ./gameframe tool ExportAddressRefs prints it.
text
Export direct references and their containing functions for selected Ghidra addresses.
Usage: analyzeHeadless PROJECT NAME -process PROGRAM -noanalysis -scriptPath tools/ghidra \
-postScript ExportAddressRefs.java OUTPUT.txt 0xADDRESS [0xADDRESS ...]