How to convert an ELF executable to C code? The generated C code need not be human-readable

前端 未结 2 1957
情话喂你
情话喂你 2021-01-17 19:58

I have an ELF file that I would like to decompile into C code, and make simple changes to the resulting C code and rebuild it into an ELF.

2条回答
  •  失恋的感觉
    2021-01-17 20:28

    This will give you (almost) an assembly code translation:

    objdump --disassemble 
    

    I say almost because the output contains some annotations like binary file position markers and can't serve directly as input to an assembler, but it's close.

提交回复
热议问题