How to print a list of symbols exported from a dynamic library

穿精又带淫゛_ 提交于 2019-11-27 16:56:32
MK.

man 1 nm

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/nm.1.html

For example:

nm -gU /usr/local/Cellar/cairo/1.12.16/lib/cairo/libcairo-trace.0.dylib

Use otool:

otool -TV your.dylib

OR

nm -g your.dylib

Use nm -a your.dylib

It will print all the symbols including globals

Use Mach-OView for viewing all the Symbols in dylib

https://sourceforge.net/projects/machoview/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!