On Sat, 2012-12-01 at 16:19 +0100, Aleksandar Kuktin wrote:
> Can you do `ldd /bin/bash'?

Oddly, no. I can't use ldd because that's a shell script depending
on /bin/sh working, but if I run:

  /lib/ld-linux-x86-64.so.2 --list /bin/bash

...I get:

/bin/bash: error while loading shared libraries: libncurses.so.5: cannot
open shared object file: No such file or directory

That's kind of surprising, actually, because I'd expect it to just list
all the libraries it's linked to, but flag one of them as unresolved.

But if I run the copy of ld-linux under /tools, I get:

$ /tools/lib/ld-linux-x86-64.so.2 --list /bin/bash
  linux-vdso.so.1 (0x00007fffe3db7000)
  libncurses.so.5 => /tools/lib/libncurses.so.5 (0x00007f3a543b2000)
  libdl.so.2 => /tools/lib/libdl.so.2 (0x00007f3a541ae000)
  libc.so.6 => /tools/lib/libc.so.6 (0x00007f3a53e08000)
  /lib64/ld-linux-x86-64.so.2 => /tools/lib/ld-linux-x86-64.so.2
(0x00007f3a54602000)


Simon.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to