Ghidra decompiler for radare2
r2ghidra: Native pdg/pdga decompilation inside radare2
Category: Developer & security tools · Type: Analysis tool
Target: radare2 native Ghidra decompiler plugin · C++
A native integration of the Ghidra decompiler into radare2. It is built from the C++ decompiler only, so a Ghidra install is not required and the plugin can be built self-contained. After r2pm -ci r2ghidra (or a source build) and af to analyze a function, pdg decompiles it; pdga shows disassembly beside the decompilation, and other pdg subcommands return comments or JSON.
Relationship
Independent reimplementation
Evidence scope
Upstream README describes an integration of the Ghidra decompiler for radare2 based solely on the C++ decompiler part, installable via r2pm -ci r2ghidra, with pdg/pdga commands. No REA involvement is claimed.
Know before you try
Building depends on radare2 (preferably from git; distro builds need the -dev package), a C++ compiler, and git/python3 to prepare ghidra-native. Capability claims are upstream's; not personally verified beyond public README/LICENSE.md. We have not independently tested it.
Status
Actively maintained; tip pushed 2026-11-17; not archived
License
LGPL-3.0-only
LGPL-3.0-only covers this project; third-party components including statically linked ghidra-native have their own licenses as listed in LICENSE.md. The plugin decompiles user-supplied binaries inside radare2; it does not ship those targets.
Source checked
