“未剥离";但是“没有调试符号" [英] "not stripped" but "no debug symbols"
本文介绍了“未剥离";但是“没有调试符号"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您能解释一下不同的结果吗?
Can you explain the different results:
$ file libc-2.8.so
libc-2.8.so: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.10, with unknown capability 0x41000000 = 0x13676e75, with unknown capability 0x10000 = 0xb0401, not stripped
请注意最后的未剥离".
Notice the "not stripped" at the end.
和
(gdb) file libc-2.8.so
Reading symbols from /opt/Cross_Tools/powerpc-linux-gnu/powerpc-linux-gnu/libc/lib/libc-2.8.so...(no debugging symbols found)...done.
注意(未找到调试符号)"
Notice the "(no debugging symbols found)"
推荐答案
You typically have to compile in debug mode (-g
is the GCC command-line option) to include the debug symbols, it's not as if they're always there until stripped out. The default is to build in non-debug mode, without the symbols.
这篇关于“未剥离";但是“没有调试符号"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文