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

前端 未结 1 1893
無奈伤痛
無奈伤痛 2021-02-19 00:34

Could anyone please explain me whats the actual difference between a stripped and a non-stripped binary in Linux ?

After a little bit of googling, I found that non-strip

1条回答
  •  醉酒成梦
    2021-02-19 01:01

    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.

    0 讨论(0)
提交回复
热议问题