Tatiana
Tatiana

Reputation: 746

Is there a possibility to get source code of ELF file using debug_info?

I have a file with type: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), with debug_info, not stripped. Is there a way to get source code of this file? How can I use debug_info?

Upvotes: 1

Views: 2445

Answers (1)

Stefan Lekic
Stefan Lekic

Reputation: 38

I believe you're looking for a debugger or decompiler. The usual suspects for these applications are the linux programs file for file info, gdb for debugging, and recently with its open-sourcing of the NSA program ghidra; that is, if you trust a software produced by the NSA. Ghidra should be able to decompile your ELF to pseudo C, or at the very least machine code.

Upvotes: 2

Related Questions