This Ghidra extension allows for the exporting of program parts as object files with valid metadata, making them directly reusable by a toolchain. Use-cases include advanced binary patching, software ports, file format conversions, creating libraries, and decompilation projects. Supported architectures and object file formats are x86, MIPS, COFF, ELF. Installation involves cloning the repository and setting up the environment, with usage requiring selection of addresses, running analyzers, and exporting object files. The extension relies on a fully populated Ghidra database for accurate results. Object files consist of relocatable section bytes, a symbol table, and a relocation table, allowing for the delinking of a program back into object files.
https://github.com/boricj/ghidra-delinker-extension