Bug 532629 - LD_VERBOSE does not work with ld.so --list
Summary: LD_VERBOSE does not work with ld.so --list
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: man-pages
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-03 07:59 UTC by Stas Sergeev
Modified: 2009-11-18 12:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-18 12:33:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stas Sergeev 2009-11-03 07:59:14 UTC
Description of problem:
"info ld.so" says:
       LD_VERBOSE
              (glibc since 2.1) If set to a non-empty  string,  output  symbol
              versioning information about the program if querying information
              about the program (i.e., either LD_TRACE_LOADED_OBJECTS has been
              set,  or  --list  or  --verify  options  have  been given to the
              dynamic linker).
But this doesn't work as advertised.

Version-Release number of selected component (if applicable):
glibc-2.10.1-5.x86_64

How reproducible:
Always

Steps to Reproduce:
1. LD_VERBOSE=1 /lib64/ld-linux-x86-64.so.2 --list `which egrep`
2. LD_VERBOSE=1 LD_TRACE_LOADED_OBJECTS=1 /lib64/ld-linux-x86-64.so.2 `which egrep`
  
Actual results:
Only the second command gives the
verbose result

Expected results:
Identical verbose output from both
commands

Additional info:
It would be nice to have a --verbose option
for that.
Oh, and while we are on that, can someone
please hint me if there is a way to get
the list of only a direct dependancies,
instead of all recursive dependancies?

Comment 1 Andreas Schwab 2009-11-05 16:29:29 UTC
The documentation is wrong.  LD_VERBOSE is only effective in trace mode.

Comment 2 Ivana Varekova 2009-11-18 11:44:44 UTC
Andreas, please could you please attach here the correct version of LD_VERBOSE description?

Comment 3 Andreas Schwab 2009-11-18 11:52:31 UTC
See #c1.

Comment 4 Stas Sergeev 2009-11-18 12:12:05 UTC
What's the difference between
list and trace mode?
Thanks.

Comment 5 Andreas Schwab 2009-11-18 12:29:15 UTC
LD_TRACE_LOADED_OBJECTS is trace mode, as the name tells.

Comment 6 Ivana Varekova 2009-11-18 12:33:44 UTC
Thanks. Fixed in man-pages-3.23-2.fc13.

Comment 7 Stas Sergeev 2009-11-18 12:37:57 UTC
But in what way the trace mode
is different from the list mode?
OK, let's see if the doc update
have this explained...


Note You need to log in before you can comment on or make changes to this bug.