Is it possible to obtain the source of a linux shared library (.so
) that was compiled with debugging information (gcc .. -g
) ? Thank you for your time.
Tricky question. The easy answer is No, you can't.
However, if you understand assembly you can use tools like objdump, gdb and others to disassemble the application. And from the assembly a skilled programmer can re-write the application. This is no easy task, and it gets more difficult depending on how complex the target application is.
The fact is that release versions are not (or shouldn't) be compiled with -g
.