Search code examples
linuxbinary

Difference between a stripped binary and a non stripped binary in Linux


Could anyone please explain to me what's the actual difference between a stripped and a non-stripped binary in Linux?

After a little bit of googling, I found that non-stripped binaries contain the debugging info and stripped binaries don't.


Solution

  • Although you have found your answer from the Google. Just putting that , non-stripped binaries have debugging information built into it. So if you compile an executable with gcc's -g flag, it contains debugging information. Whereas Strip binaries generally remove this debugging information from the exe which is not necessary for execution so as to reduce the size of the exe.