The following warnings occurred: | |||||||||||||||
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.18 (Linux)
|
Quick question about Ghidra - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14) +--- Forum: Coding & Hacking General Discussion (https://mariokartwii.com/forumdisplay.php?fid=23) +--- Thread: Quick question about Ghidra (/showthread.php?tid=1421) Pages:
1
2
|
Quick question about Ghidra - ComputerBot2016 - 01-11-2020 So, I’ve got Ghidra setup and decompiled the main.dol and StaticR.rel, and I’ve noticed that addresses of functions listed in Ghidra are offset by a specific amount compared to when I find the same functions in memory in dolphin. I’ve figured out that the offset is 187234 in hex, so I can use that value to convert function addresses between the 2. My question is, is there a setting in Ghidra I can change to add this offset automatically, so the functions start at the same addresses as dolphin? Thanks RE: Quick question about Ghidra - Vega - 01-11-2020 I never had this issue on Ghidra. DId you install Cuyler's and Aldelaro5's extensions/packs? And are you choosing the Gekko Broadway option when starting the project? All of my address/function calls line up fine. What version of Ghidra are you using? I use 9.0.2 RE: Quick question about Ghidra - ComputerBot2016 - 01-11-2020 9.1 I installed both of the extensions specifed in the tutorial. I had the language set to Gekko Broadway and the format set to Nintendo Gamecube Binary RE: Quick question about Ghidra - Vega - 01-11-2020 Hmm try Ghidra 9.0.2 with the original version of the DOL/REL reader - https://github.com/Cuyler36/Ghidra-GameCube-Loader/releases/tag/1.0.0 RE: Quick question about Ghidra - Vega - 01-11-2020 Update: I went ahead and try to run Ghidra 9.1 with the newer release of the dol/rel reader and I kept getting java errors when importing the rel file. Main.dol imported fine and listed all the functions with their proper RAM Address. Whats weird is when I load the rel in my 9.0.2 ghidra it no longer does the RAM Addresses correctly. However when you import the Rel, before clicking OK, click the Options button on the right, and ther'es a field to change Base Address. That should remedy your problem. Ofc check a list of random functions to make sure alignment is correct. RE: Quick question about Ghidra - JoshuaMK - 01-11-2020 HMMMM RE: Quick question about Ghidra - Vega - 01-11-2020 Joshua, do you use Ghidra? Are you able to load the StaticR.rel without any realignment of memory addresses? RE: Quick question about Ghidra - ComputerBot2016 - 01-11-2020 Something weird I just noticed. One of the functions I just found in dolphin actually does line up with Ghidra, even though the others still don’t appear to. Very strange RE: Quick question about Ghidra - Vega - 01-11-2020 Did you build the dol/rel reader from Source? Or just installed the release .zip package RE: Quick question about Ghidra - ComputerBot2016 - 01-11-2020 I used the release zip file |