LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 641|回复: 0

LD_DEBUG coolness

[复制链接]
发表于 2003-11-21 20:31:57 | 显示全部楼层 |阅读模式
  1. LD_DEBUG coolness
  2. Wed, 15 Oct 2003 15:50:50 -0600
  3. Jason Creighton (androflux from softhome.net)

  4. Hi,

  5. I was reading comp.unix.programmer and came across a comment about setting the LD_DEBUG environmental varible to 'help' and running a dynamic executable. Okay, let's try it:

  6. ~$ export LD_DEBUG=help
  7. ~$ ls
  8. Valid options for the LD_DEBUG environment variable are:

  9.   libs        display library search paths
  10.   reloc       display relocation processing
  11.   files       display progress for input file
  12.   symbols     display symbol table processing
  13.   bindings    display information about symbol binding
  14.   versions    display version dependencies
  15.   all         all previous options combined
  16.   statistics  display relocation statistics
  17.   help        display this help message and exit

  18. To direct the debugging output into a file instead of standard output
  19. a filename can be specified using the LD_DEBUG_OUTPUT environment variable.

  20. See attached ls_output.txt

  21. Fun thing to play with. And who knows, I might actually have a use for it someday.

  22.     [Ben]

  23.     *Nice!*

  24.     Thanks, Jason - that's a really fine tidbit. It now reposes comfortably in my toolbox in the little niche by "strace" and keeps it from rolling around and rattling. I've spent the past week teaching people how to use the "grep" drill, the "awk" chopsaw, and the "sed" jackhammer, and can appreciate the finesse of a precision instrument all the more for that reason...
复制代码



http://linuxgazette.net/issue96/lg_tips.html#tips.3
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表