GhidraRPXLoader/README.md

35 lines
1.8 KiB
Markdown
Raw Normal View History

2019-03-06 14:56:59 +01:00
# Ghidra RPX/RPL loader
This is a simple extension to open .rpx and .rpl files with `Ghidra 11.0+`.
2019-03-06 14:56:59 +01:00
2023-11-01 18:17:36 +01:00
The loader includes the Gekko/Broadway/Espresso processor definitions that are based on the [Ghidra-GameCube-Loader](https://github.com/Cuyler36/Ghidra-GameCube-Loader).
2023-11-01 18:17:36 +01:00
In case the Espresso language is not found, the loader will switch to the default PowerPC processor. However, it is not advisable to expect satisfactory results if the program uses paired single instructions.
2023-11-01 18:17:36 +01:00
Imports in official .rpl/.rpx files may display as "func_xyz" instead of the function's actual name. This issue can be resolved by running the `fix_primary_imports.java` script, which is included with this loader.
2023-07-26 12:11:06 +02:00
## Building
2023-11-01 18:17:36 +01:00
- Ensure you have ``JAVA_HOME`` set to the path of your JDK 21 installation.
2023-07-26 12:11:06 +02:00
- Set ``GHIDRA_INSTALL_DIR`` to your Ghidra install directory. This can be done in one of the following ways:
- **Windows**: Running ``set GHIDRA_INSTALL_DIR=<Absolute path to Ghidra without quotations>``
- **macos/Linux**: Running ``export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>``
- Using ``-PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra>`` when running ``./gradlew``
- Adding ``GHIDRA_INSTALL_DIR`` to your Windows environment variables.
- Run ``./gradlew``
- You'll find the output zip file inside `/dist`
## Installation
2023-11-01 18:17:36 +01:00
2023-07-26 12:11:06 +02:00
- Copy the zip file to ``<Ghidra install directory>/Extensions/Ghidra``.
- Start Ghidra and use the "Install Extensions" dialog to finish the installation. (``File -> Install Extensions...``).
## Usage
2023-11-01 18:17:36 +01:00
2023-07-26 12:11:06 +02:00
- Choose the `Gekko/Broadway/Espresso` language if asked
2023-11-01 18:17:36 +01:00
- Run the `fix_primary_imports.java` script if imports are not displayed properly
2019-03-06 14:56:59 +01:00
# Credits
2023-07-26 12:11:06 +02:00
- Based on https://github.com/Relys/rpl2elf
2023-11-01 18:17:36 +01:00
- Based on https://github.com/Cuyler36/Ghidra-GameCube-Loader