简体   繁体   English

Linux中剥离的二进制文件和非剥离的二进制文件之间的区别

[英]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 ? 有谁能解释一下我在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. 虽然您已从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. 因此,如果使用gcc's -g标志编译可执行文件,则它包含调试信息。 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. 剥离二进制文件通常从exe中删除此调试信息,这不是执行所必需的,以便减小exe的大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 剥离二进制之后的调试节 - Debug sections after binary is stripped perf顶视图拆卸,无符号(带二进制剥离) - perf top view disassembly without symbol (with stripped binary) 如何验证已从二进制文件中删除了无效代码? - how can I verify that dead code was stripped from the binary? dlsym 如何从剥离的二进制库中成功导入 function? - How can dlsym successfully import function from stripped binary library? 为什么剥离的二进制文件在反汇编文件中仍然可以有库调用信息? - Why a stripped binary file can still have library call information in the disassembled file? 从剥离的ELF二进制文件估计编译器(GCC或LLVM-clang)版本 - Estimating compiler (GCC or LLVM-clang) version from a stripped ELF binary 如何撤消strip - 即将符号添加回剥离的二进制文件 - How to undo strip - i.e. add symbols back to stripped binary 剥离的符号不是从字符串linux工具中隐藏的 - Stripped symbols are not hidden from strings linux tool 【Linux二进制SUID和cap_setuid的区别】 - [Linux Difference between SUID and cap_setuid of binary] Linux发行版之间的二进制兼容性 - Binary compatibility between Linux distributions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM