I've built a simple program like this:
g++ application.cpp -o application.exe
and then executed the command;
ldd application.exe
...
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
...
I want to list all the symbols of the libc
library:
nm /lib/x86_64-linux-gnu/libc.so.6
nm: /lib/x86_64-linux-gnu/libc.so.6: no symbols
nm --defined-only /lib/x86_64-linux-gnu/libc.so.6
nm: /lib/x86_64-linux-gnu/libc.so.6: no symbols
Why nm
reports no symbols? If libc.so.6
is not a library, but some kind of a link to the actual library, then how can I find the actual library?
/lib/x86_64-linux-gnu/libc.so.6
stripped? What is the output offile /lib/x86_64-linux-gnu/libc.so.6
? – Justreadelf -s libc.so.6
, also see Why nm shows no symbols for /lib/i386-linux-gnu/libc.so.6? . – Musing