News for hackers. Stuff that matters.
Re:Show HN: A Ghidra extension that turns programs back into... by RBO2 on Wednesday January 03, 2024 @08:06AM (#38853596)
I love the idea of static recompilation. It is a promising way to make statically linked code more reusable/sustainable!
Re:Show HN: A Ghidra extension that turns programs back into... by boricj on Wednesday January 03, 2024 @08:45AM (#38853955)
My Ghidra extension doesn't perform static recompilation, the bytes that are exported are the ones from the original program (except the ones targeted by a relocation). It's similar to a raw binary exportation, except you get a relocatable object file instead.

That being said, maybe it's possible to perform a delinkage and then run a static recompiler on the object file. I don't know how that would compare to running a decompiler on the object file.