To figure out what a binary depends on, you can either
scanelf -n <program>objdump -p <program> | grep NEEDEDldd <program>Note that ldd will show more runtime dependencies than strictly needed in an ebuild.
Use equery belongs to figure out which package the shared library object comes from.