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