linux - How can I find the dynamic libraries required by an ELF Binary in C++? -


how can list of dynamic libraries required elf binary in linux using c++?

once i've managed extract information (filename?) binary can find actual file searching through path, haven't been able find information regarding extracting unmangled information elf binary.

thoughts?

you can call "readelf -d" program , parse output:

readelf -d /usr/bin/readelf | grep needed  0x0000000000000001 (needed)             shared library: [libz.so.1]  0x0000000000000001 (needed)             shared library: [libc.so.6] 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -