如何查看对象文件中的符号? [英] How to view symbols in object files?
本文介绍了如何查看对象文件中的符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何查看.o文件中的符号? nm对我不起作用。我使用g ++ / linux。
解决方案
代替 nm
,您可以使用强大的 objdump
。详情请参阅手册页。试试 objdump -t myfile
或 objdump -T myfile
。使用 -C
标志,您还可以对C ++名称进行反转处理,如 nm
does。
How can I view symbols in a .o file? nm does not work for me. I use g++/linux.
解决方案
Instead of nm
, you can use the powerful objdump
. See the man page for details. Try objdump -t myfile
or objdump -T myfile
. With the -C
flag you can also demangle C++ names, like nm
does.
这篇关于如何查看对象文件中的符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文