Custom RelocationFixupHandler cannot be called from code
See original GitHub issueI’ve added relocations into RelocationTable relocTable = program.getRelocationTable();
and tried to use it by program.setImageBase()
, but it doesn’t call my handler.
It happens only when I’m changing ImageBase from GUI.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ghidra1, his Extension Point is working. This issue is about the Extension Point only being called via a rebase from the GUI, and not from the API.
Since you are doing this programatically, you could try using the
RelocationFixupCommand
after your call to setImageBase. Be sure to specify the setImageBase commit param as true with an open transaction. Since you are in control of the loader you would know if there are any other memory changes made during import that would be problematic.