简体   繁体   中英

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

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-stripped binary contains the debugging info and stripped binary does'nt.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM