当前位置:首页 > 服务端 > 查找应用编译时所找的动态库:LD_DEBUG

查找应用编译时所找的动态库:LD_DEBUG

LD_DEBUG 是 glibc 中的 loader 为了方便自身调试而设置的一个环境变量。

命令 :LD_DEBUG=help ls,显示帮助信息,例:

Valid options for the LD_DEBUG environment variable are:

libs display library search paths
reloc display relocation processing
files display progress for input file
symbols display symbol table processing
bindings display information about symbol binding
versions display version dependencies
all all previous options combined
statistics display relocation statistics
unused determined unused DSOs
help display this help message and exit

 

命令 :LD_DEBUG=libs ./batMain,显示batMain程序锁关联的动态库。例:

14943: find library=libBase.so [0]; searching
14943: search path=tls/i686/sse2:tls/i686:tls/sse2:tls:i686/sse2:i686:sse2::/oracle/product/10.2.0/lib/tls/i686/sse2:/oracle/product/10.2.0/lib/tls/i686:/oracle/product/10.2.0/lib/tls/sse2:/oracle/product/10.2.0/lib/tls:/oracle/product/10.2.0/lib/i686/sse2:/oracle/product/10.2.0/lib/i686:/oracle/product/10.2.0/lib/sse2:/oracle/product/10.2.0/lib:/home/lcc/lib/tls/i686/sse2:/home/lcc/lib/tls/i686:/home/lcc/lib/tls/sse2:/home/lcc/lib/tls:/home/lcc/lib/i686/sse2:/home/lcc/lib/i686:/home/lcc/lib/sse2:/home/lcc/lib (LD_LIBRARY_PATH)
14943: trying file=tls/i686/sse2/libBase.so
14943: trying file=tls/i686/libBase.so
14943: trying file=tls/sse2/libBase.so
14943: trying file=tls/libBase.so
14943: trying file=i686/sse2/libBase.so
14943: trying file=i686/libBase.so
14943: trying file=sse2/libBase.so
14943: trying file=libBase.so
14943: trying file=/oracle/product/10.2.0/lib/tls/i686/sse2/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/tls/i686/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/tls/sse2/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/tls/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/i686/sse2/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/i686/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/sse2/libBase.so
14943: trying file=/oracle/product/10.2.0/lib/libBase.so
14943: trying file=/home/lcc/lib/tls/i686/sse2/libBase.so
14943: trying file=/home/lcc/lib/tls/i686/libBase.so
14943: trying file=/home/lcc/lib/tls/sse2/libBase.so
14943: trying file=/home/lcc/lib/tls/libBase.so

 

作者:Samurail
来源链接:https://www.cnblogs.com/samurail/archive/2012/12/05/2803750.html

版权声明:
1、Java侠(https://www.javaxia.com)以学习交流为目的,由作者投稿、网友推荐和小编整理收藏优秀的IT技术及相关内容,包括但不限于文字、图片、音频、视频、软件、程序等,其均来自互联网,本站不享有版权,版权归原作者所有。

2、本站提供的内容仅用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律的规定,不得侵犯相关权利人及本网站的合法权利。
3、本网站内容原作者如不愿意在本网站刊登内容,请及时通知本站(javaclubcn@163.com),我们将第一时间核实后及时予以删除。





本文链接:https://www.javaxia.com/server/124708.html

标签: unused variable
分享给朋友:

“查找应用编译时所找的动态库:LD_DEBUG” 的相关文章