-
Notifications
You must be signed in to change notification settings - Fork 31
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
Translation unit detection #65
Comments
Some more clues:
|
Resuming work on this. To begin with, I'm going to export all symbols, XREFs, etc, from @stblr's Ghidra using https://github.com/r0metheus/GhiDump |
First attempt at translation unit detection using the sdata2 heuristic has been successful (well, kinda?). File format is
Please note that the detected text TUs only set the minimum span. They are always greater in practice. |
Nice work! I think for the time being, we can fairly easily do .text splits using the symbol map. If the script could then autogenerate the data splits, that would be really convenient. |
Most of the unresearched code currently sits in a handful of large assembly blobs.
These blobs contain lots of unrelated pieces of code. We need to improve structuring.
A basic improvement is to recover the original translation unit slices and generate C inline ASM files for each TU.
The CodeWarrior build system leaks some information on TU structure.
Examples:
The text was updated successfully, but these errors were encountered: