Droider
Droider

Reputation: 589

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.

Upvotes: 31

Views: 34835

Answers (1)

Rahul Tripathi
Rahul Tripathi

Reputation: 172608

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.

Upvotes: 27

Related Questions