{"by":"boricj","descendants":36,"id":41318133,"kids":[41321053,41321926,41322141,41328691,41320791,41321976,41321786,41321211,41322289,41322806,41321117,41327901,41320751],"score":304,"text":"This Ghidra extension unrelocates machine code through analysis and then synthesizes a working object file from a listing selection. It effectively turns computer programs into Lego bricks, to be torn down into pieces and reused into something new.<p>It supports the COFF and ELF object file formats, for the x86 and MIPS architectures. It has been successfully used on Linux, Windows and PlayStation executables. One user report is on a commercial video game from 2009 with a ~7 MiB Windows executable written in C++: it was delinked without its C runtime library and then relinked into a new executable at a different base address, with no visible change in functionality, as a prelude to a decompilation project.<p>Use-cases I&#x27;ve demonstrated on my blog include modding, making software ports, converting executable file formats, creating libraries... I&#x27;ve originally built this as part of a video game decompilation project ; I&#x27;ve been working on this over the past 2.5 years and recently it has started gaining some users besides me.","time":1724316884,"title":"Show HN: A Ghidra extension for exporting parts of a program as object files","type":"story","url":"https://github.com/boricj/ghidra-delinker-extension"}