How can I easily find out the direct shared object dependencies of a Linux binary in ELF format?
I’m aware of the ldd tool, but that appears to output all dependencies of a binary, including the dependencies of any shared objects that binary is dependent on.
You can use
readelfto explore the ELF headers.readelf -dwill list the direct dependencies asNEEDEDsections.