On Tuesday 29 May 2007, The MoonSeeker wrote: > > So try chroot /tmp/minime /bin/sh. > > Doesn't work :( > > > ldd /bin/ash to know which. > > ldd /bin/bash > linux-gate.so.1 => (0xb7f84000) > libncurses.so.5 => /lib/libncurses.so.5 (0xb7f3e000) > libdl.so.2 => /lib/libdl.so.2 (0xb7f3a000) > libc.so.6 => /lib/libc.so.6 (0xb7e12000) > /lib/ld-linux.so.2 (0xb7f85000) > > > ldd /tmp/embtest/bin/bash > linux-gate.so.1 => (0xb7f5f000) > libncurses.so.5 => /lib/libncurses.so.5 (0xb7f19000) > libdl.so.2 => /lib/libdl.so.2 (0xb7f15000) > libc.so.6 => /lib/libc.so.6 (0xb7ded000) > /lib/ld-linux.so.2 (0xb7f60000)
ldd should never be relied on when looking at cross-compiled binaries as it utilizes the host ldso to figure out the dependency tree use `readelf -d` or `scanelf -n` -mike
signature.asc
Description: This is a digitally signed message part.
