/home # file hello
hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-uClibc.so.0, with debug_info, not stripped
strip之前文件大小
/home # ls -l hello
-rwxrwxr-x 1 hxy hxy 18932 May 19 07:20 hello
strip之前的函数符号
/home # nm hello
00020b3c B bss_end
00020b3c B bss_end_
00020a90 B __bss_start
00020a90 B bss_start
00020b1c b completed.8932
00020a88 D __data_start
00020a88 W data_start
strip后文件大小
/home # ls -l hello
-rwxrwxr-x 1 hxy hxy 4160 May 19 08:48 hello
strip后的函数符号
/home # nm hello
nm: hello: no symbols
注意:如果进行gdb调试,则不能strip。