This is the mail archive of the 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]

Debian problem with --list

The origin of this problem is from the Debian bug tracking system:

I can reproduce it on my machine with the following command sequence:

# /lib/ --list /usr/bin/telnet => /usr/lib/ (0x40006000) => /lib/ (0x4004e000)
        /lib/ => /lib/ (0x2aaaa000)
# mv /usr/lib/ /usr/lib/
# /lib/ --list /usr/bin/telnet
/usr/bin/telnet: error in loading shared libraries: cannot
open shared object file: No such file or directory

I believe we should get output similar to this:

# ldd /usr/bin/telnet => not found => /lib/ (0x4001e000)
        /lib/ => /lib/ (0x40000000)

Jim suggests the problem can be fixed in elf/rtld.c, line 780...
  _dl_map_object_deps (_dl_loaded, preloads, npreloads, mode == trace, 0);

... by changing it to pass the ?? flag on both list and trace...

  _dl_map_object_deps (_dl_loaded, preloads, npreloads, 
                       (mode == list || mode == trace), 0);


Scott Bambrough - Software Engineer

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