macOS下面查看执行文件依赖信息 发表于 2017-03-06 | 分类于 macos | 查看动态链接库信息通过otool查看:12345678$ otool -L CppRestCppRest: /usr/local/opt/cpprestsdk/lib/libcpprest.2.9.dylib (compatibility version 2.9.0, current version 0.0.0) /usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/opt/boost/lib/libboost_system.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0) 查看符号表通过nm查看:123456789101112131415161718192021nm CppRest000000010000a21c s GCC_except_table138000000010000a234 s GCC_except_table148000000010000a254 s GCC_except_table156000000010000a280 s GCC_except_table159000000010000a2bc s GCC_except_table166...0000000100001370 t __ZN5boost4asio5error16get_ssl_categoryEv00000001000012f0 t __ZN5boost4asio5error17get_misc_categoryEv00000001000011f0 t __ZN5boost4asio5error18get_netdb_categoryEv...0000000100009970 t ___cxx_global_var_init0000000100009990 t ___cxx_global_var_init.10000000100009a90 t ___cxx_global_var_init.120000000100009af0 t ___cxx_global_var_init.130000000100009b50 t ___cxx_global_var_init.140000000100009bb0 t ___cxx_global_var_init.150000000100009c10 t ___cxx_global_var_init.1600000001000099b0 t ___cxx_global_var_init.200000001000099d0 t ___cxx_global_var_init.3... 本文作者: Xinus 本文链接: http://xinus.wang/2017/03/otool-intro/ 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 许可协议。转载请注明出处!