|
|
|
|
|
by hmfrh
663 days ago
|
|
> As long as you do not cut across a variable or a function, you can export pretty much however you want, you don't have to follow the original object file boundaries. Would it be possible to export basically the entire program at once and then slice off individual functions one by one? Do you have any guides/examples of the > Decompilation projects, by splitting a program into multiple object files and reimplementing these Ship of Theseus-style style project? |
|
Yes. The exporters can handle whatever meaningful address selection you can throw at them, including multiple disjoint ranges within the same section. So you can keep carving holes inside your selection until nothing remains of the original program.
> Do you have any guides/examples of the Ship of Theseus-style style project?
Not quite. My own decompilation project is on a hiatus due to one version tracking session too many in a row, so I only have one article on this so far [1] and the way I've done it is a bit wonky.
Another user has recently started a decompilation project [2] with a better framework than I've used in that article, but no actual decompilation has taken place there yet. Incidentally, that would also make for a good modding framework, if one decides to not write functionally identical replacement code.
[1] https://boricj.net/tenchu1/2024/05/31/part-11.html (which is humorously titled "A modding framework powered by the tears of CS101 teachers")
[2] https://github.com/widberg/FUELDecompilation