Got a file which I do not know how to list its symbols, file command says:
]# file <file-name>
ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, no section header
nm and nm -D says no symbols in it.
How to get the symbols?
The
nm -Dis guaranteed to not produce any output for astatically linkedbinary -- dynamic symbols are never present in such binaries.The fact that
nmproduces no output and thatfilesaysno section headermeans that this binary is fully stripped, i.e. all symbols and section info has been removed from it.There is no way to get symbols from this binary -- you need to get the original (unstipped) one if you need symbolic info.