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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM