Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relocatable DOL hack #176

Open
riptl opened this issue Apr 11, 2022 · 1 comment
Open

Relocatable DOL hack #176

riptl opened this issue Apr 11, 2022 · 1 comment
Assignees
Labels
decompiler Improvements to decompiler tooling

Comments

@riptl
Copy link
Collaborator

riptl commented Apr 11, 2022

Update gen_asm to create relocatable assembly for DOL .text section.

Steal approach used by @camthesaxman's doldisasm

  1. lis/la effective address matcher
  2. 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)
  3. regex to replace offsets use capstone label callback to replace literal offsets with symbol refs
@riptl riptl added the decompiler Improvements to decompiler tooling label Apr 11, 2022
@riptl riptl self-assigned this Apr 11, 2022
@riptl
Copy link
Collaborator Author

riptl commented Apr 11, 2022

Picking this up today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decompiler Improvements to decompiler tooling
Projects
None yet
Development

No branches or pull requests

1 participant