man strip
引用:
-s
--strip-all
Remove all symbols.
-g
-S
-d
--strip-debug
Remove debugging symbols only.
--strip-unneeded
Remove all symbols that are not needed for relocation processing.
man ld
引用:
-s
--strip-all
Omit all symbol information from the output file.
-S
--strip-debug
Omit debugger symbol information (but not all symbols) from the
output file.
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options
引用:
-s
Remove all symbol table and relocation information from the executable.
gcc -s是否相当于strip --strip-all了?或者是ld --strip-all?
gcc -s、strip --strip-all、ld --strip-all之间有何区别阿?
如果要移除符号的话,是设置CFLAGS好呢还是LDFLAGS好呢?