一、简介
strip经常用来去除目标文件中的一些符号表、调试符号表信息,以减小程序的大小。
二、语法
https://sourceware.org/binutils/docs/binutils/strip.html
三、实例
1)Remove all symbol and relocation information
strip --strip-all [需要处理的文件]
2)去掉调试信息
strip --strip-debug [需要处理的文件]
3)Remove a particular section
strip --remove-section=<name> [需要处理的文件]
参考: http://www.thegeekstuff.com/2012/09/strip-command-examples