How do I figure out the path of a shared library that my program is using at run time?
I have glibc 2.12 as the primary glibc running on my CentOS 6.10 system, and have also installed glibc 2.14 in /opt/glibc-2.14
.
When I inspect my executable file with
$ objdump -p ./myProgram
it gives this info
Dynamic Section:
NEEDED libpthread.so.0
NEEDED libcurl.so.4
NEEDED libc.so.6
and my LD_LIBRARY_PATH
has this value /opt/glibc-2.14/lib
.
Is there away to see which libc.so.6
library (perhaps with the path to the library file) my program is actually using while it is running?