arm-linux-strip 的使用

3.2.1    1. 移除全部的符号信息 [arm@localhost gcc]#cp hello hello1linux

[arm@localhost gcc]#arm­linux­strip ­strip­all helloide

­­strip­all: 是移除全部符号信息调试

[arm@localhost gcc]#llip

­rwxr­xr­x  1 arm root  2856  7 月  3 15:14 helloit

­rwxr­xr­x  1 arm root 13682  7 月  3 15:13 hello1class

被 strip 后的 hello 程序比原来的 hello1 程序要小不少。gcc

 

2. 移除调试符号信息gc

[arm@localhost gcc]#arm­linux­strip ­g hello [arm@localhost gcc]#ll程序

­rwxr­xr­x  1 arm root  4501  7 月  3 15:17 hellodi

­rwxr­xr­x  1 arm root 13682  7 月  3 15:13 hello1

相关文章
相关标签/搜索