我如何找出从共享对象中导出的所有符号是什么? [英] How do i find out what all symbols are exported from a shared object?
本文介绍了我如何找出从共享对象中导出的所有符号是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个共享库(dll).我如何找出所有从中导出的符号?
I have a shared object(dll). How do i find out what all symbols are exported from that?
推荐答案
您是否有共享库"(通常是AIX上的共享库),UNIX共享库或Windows DLL?这些都是不同的东西,您的问题将所有这些东西混为一谈:-(
Do you have a "shared object" (usually a shared library on AIX), a UNIX shared library, or a Windows DLL? These are all different things, and your question conflates them all :-(
- 对于AIX共享对象,请使用
dump -Tv /path/to/foo.o
. - 对于ELF共享库,请使用
readelf -Ws /path/to/libfoo.so
或(如果您有GNU nm,请使用nm -D /path/to/libfoo.so
). - 对于非ELF UNIX共享库,请说明您感兴趣的UNIX .
- 对于Windows DLL,请使用
dumpbin /EXPORTS foo.dll
.
- For an AIX shared object, use
dump -Tv /path/to/foo.o
. - For an ELF shared library, use
readelf -Ws /path/to/libfoo.so
, or (if you have GNU nm)nm -D /path/to/libfoo.so
. - For a non-ELF UNIX shared library, please state which UNIX you are interested in.
- For a Windows DLL, use
dumpbin /EXPORTS foo.dll
.
这篇关于我如何找出从共享对象中导出的所有符号是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文