mkw
mkw copied to clipboard
Relocatable DOL hack
Update gen_asm
to create relocatable assembly for DOL .text
section.
Steal approach used by @camthesaxman's doldisasm
- lis/la effective address matcher
- mechanism to export the refs from gen_asm on .text to gen_asm in .data (probably easiest here is to just modify symbols.txt on the fly)
- ~~regex to replace offsets~~ use capstone label callback to replace literal offsets with symbol refs
Picking this up today.