kotcrab / ghidra-allegrex

Ghidra processor module adding support for the Allegrex CPU (PSP)
Apache License 2.0
91 stars 9 forks source link

Rebasing image after importing can fail #6

Closed kotcrab closed 4 years ago

kotcrab commented 4 years ago

There are binaries for which rebasing the image after importing is not working correctly.

To reproduce:

  1. Load ULJM06081 at address 0x0
  2. Try to rebase to 0x8804000 (Memory Map -> Set Image Base)
  3. Some relocations won't be updated correctly

Note: Setting ULJM06081 image base to 0x8804000 during initial import produces correct results.

kotcrab commented 4 years ago

Fixed but it will only apply to new projects. Existing projects will remain broken because the stored relocation table is invalid. This relocation table is created during import. In theory it would be possible to create script that reimports the relocation table.