Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Mac OS, How to list all functions used by executable from dynamic library?

Tags:

macos

dyld

I tried to override network socket related function in Mail app. But I'm not sure if Mail app uses Core foundation socket or POSIX socket.

I use otool -l to find dynamic loaded library in LC_LOAD_DYLIB section. However, I want to know what exact functions it calls.

like image 380
Ricky Zhang Avatar asked Nov 10 '13 14:11

Ricky Zhang


1 Answers

nm will show you the imported symbols. Use nm -ufm /Applications/Mail.app/Contents/MacOS/Mail to get symbols and the libraries/framework they came from.

like image 75
Emmanuel Avatar answered Oct 27 '22 05:10

Emmanuel