Linux中剥离二进制文件和非剥离二进制文件之间的区别 [英] Difference between a stripped binary and a non stripped binary in Linux

查看:232
本文介绍了Linux中剥离二进制文件和非剥离二进制文件之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以请我解释一下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.

推荐答案

尽管您已经从Google找到了答案.只需放入非剥离式二进制文件,其中就会内置调试信息.因此,如果使用gcc's -g标志编译可执行文件,则该可执行文件将包含调试信息.而Strip二进制文件通常会从exe删除该调试信息,这对于执行是不必要的,从而减小了exe的大小.

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.

这篇关于Linux中剥离二进制文件和非剥离二进制文件之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆