question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relocations are broken

See original GitHub issue

It appears that relocations are currently being applied incorrectly. For example, in Dark Cloud, in EscapeDungeonMode there should be a jump to SearchItemIndexNo like this:

001f3f58 50 f6 06 0c jal CDngStatusData::SearchItemIndexNo undefined SearchItemIndexNo(int param_1)

However, instead, the jump is to an invalid address like this:

001f3f58 a0 ec 0d 0c jal SUB_0037b280

If you look in Ghidra’ relocation table view, you can see that this is due to a relocation at this address (which is incorrect):

001f3f58 0x4 0x2c1d 50 f6 06 0c SearchItemIndexNo__14CDngStatusDataFi

Both IDA and ps2dis do not alter the initial value and produce correct results. This can be seen in a number of other places too, but I picked one example for convenience.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:56 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
astrelskycommented, Mar 26, 2020

I look forward to this fix.

The fixes won’t come until the release of ghidra 9.2. There was an issue with extension points that has since been resolved. I also need to do some major cleanup and reorganization but hopefully it shouldn’t be to long.

1reaction
astrelskycommented, Oct 5, 2020

Okay. Apologies for uploading the binary.

In terms of 9.2, if you could make a separate branch, that would be good enough. I’m willing to build Ghidra 9.2 if it would let me start reversing this binary. As far as I’m aware there’s no indication for when 9.2 will officially be released, and it’s been 8 months since the last release. I hate to be pushy like this, but I’m getting a little frustrated with how long it’s taken to release.

You may give this a shot. I won’t put it up in a branch until I’ve removed the unused code and figure out how I want to handle the irx modules.

ghidra_9.2_DEV_20201005_ghidra-emotionengine.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Housing lottery is broken because of relocation : r/ffxiv - Reddit
Whenever a winner is selected, you find out that they already have a house and they only entered to relocate. 9 days wasted...
Read more >
Problems with broken Relocations: Duplicate Modules for one ...
The reason for the broken relocation folder remains unclear. It seems that a yet unknown process simply replaces the relocated folder with the ......
Read more >
Operation: Relocation - Broken - Bug Report - Blizzard Forums
Hi, It seems that Operation: Relocation is broken. You are supposed to collect 8x 'Wild Proto Avian' but there doesn't appear to be...
Read more >
Domestic Relocation Policies are Broken! - AIRShare
Domestic Relocation Policies are Broken! Thanks for all who responded to our poll on whether Domestic Relocation policies are broken.
Read more >
The Refugee Relocation Process Is Broken - How Would You ...
The three items below seem to illustrate how broken the current relocation process is. (Note: I do believe that we should help the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found