如何查看目标文件中的符号? [英] How to view symbols in object files?
本文介绍了如何查看目标文件中的符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何查看 .o 文件中的符号?nm 对我不起作用.我使用 g++/linux.
How can I view symbols in a .o file? nm does not work for me. I use g++/linux.
推荐答案
你可以使用强大的objdump
来代替nm
.有关详细信息,请参见手册页.试试 objdump -t myfile
或 objdump -T myfile
.使用 -C
标志,您还可以像 nm
那样对 C++ 名称进行分解.
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屋!
查看全文