title: ldd doesn't work on dynamically linked binary
body: <p>I have a binary that uses a bunch of .so files.</p>
  
  <pre><code>bash-3.00$ file foo
  foo: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.21, dynamically linked (uses shared libs), not stripped
  </code></pre>
  
  <p>But if I run ldd on this file, its not able to pick up the .so files the binary is dependent on.'</p>
  
  <pre><code>bash-3.00$ ldd foo
          not a dynamic executable
  bash-3.00$
  </code></pre>
  
  <p>readelf does show the list of shared libraries used by the binary..</p>
  
  <pre><code>bash-3.00$ readelf -d  foo
  Dynamic segment at offset 0x17c810 contains 70 entries:
  
    Tag        Type                         Name/Value
   0x00000001 (NEEDED)                     Shared library: [libdl.so.2]
  </code></pre>
  
  <p>Why is ldd not able to pick up the library dependencies in this case ?</p>