|
- LD_DEBUG coolness
- Wed, 15 Oct 2003 15:50:50 -0600
- Jason Creighton (androflux from softhome.net)
- Hi,
- 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:
- ~$ export 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
- help display this help message and exit
- To direct the debugging output into a file instead of standard output
- a filename can be specified using the LD_DEBUG_OUTPUT environment variable.
- See attached ls_output.txt
- Fun thing to play with. And who knows, I might actually have a use for it someday.
- [Ben]
- *Nice!*
- 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 |
|