arm-linux-strip 的使用

3.2.1    1. 移除所有的符号信息 [arm@localhost gcc]#cp hello hello1

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

­­strip­all: 是移除所有符号信息

[arm@localhost gcc]#ll

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

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

被 strip 后的 hello 程序比原来的 hello1 程序要小很多。

 

2. 移除调试符号信息

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

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

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

posted @ 2019-06-29 08:45  樊伟胜  阅读(1445)  评论(0编辑  收藏  举报