This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Debian problem with ld-linux.so.2 --list


Ulrich Drepper wrote:

> It's not inconsistent.  The --list options provides a way the easily
> find out whether a program can run for all its dependencies are found.
> Using --list for what LD_TRACE_LOADED_OBJECT is meant to be used is wrong.

Perhaps, but that is not what the help text led me to expect.  I'll go along
with whatever you think is correct. 

BTW, is there any other documentation on these options, and the environment
variables used by ld.so.  I've went looking several times but couldn't find
anything other than a FAQ entry and the help text in the source.  The ELF spec's
I have only mention LD_BIND_NOW and LD_LIBRARY_PATH.  These would be v1.2 Intel
(http://www.linuxbase.org/spec/refspecs/elf.pdf) and the ARM elf spec
(http://www.arm.com/Documentation/ISTSpecs/ARMELFA08.pdf).  Is there something
later I should look at or somewhere else to look?

Scott

[root@pauli elf]# /lib/ld-linux.so.2
Usage: ld.so [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]
You have invoked `ld.so', the helper program for shared library executables.
This program usually lives in the file `/lib/ld.so', and special directives
in executable files using ELF shared libraries tell the system's program
loader to load the helper program from this file.  This helper program loads
the shared libraries needed by the program executable, prepares the program
to run, and runs it.  You may invoke this helper program directly from the
command line to load and run an ELF executable file; this is like executing
that file itself, but always uses this helper program from the file you
specified, instead of the helper program file specified in the executable
file you run.  This is mostly of use for maintainers to test new versions
of this helper program; chances are you did not intend to run this program.

  --list                list all dependencies and how they are resolved
  --verify              verify that given object really is a dynamically
                        linked object we get handle
  --library-path PATH   use given PATH instead of content of the environment
                        variable LD_LIBRARY_PATH
  --inhibit-rpath LIST  ignore RPATH information in object names in LIST
[root@pauli elf]#

Scott

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]