c - Stripped symbols are not hidden from strings linux tool -
i have shared library symbols stripped. using known method/tool symbol names (like nm -d
, objdump
, readelf
, etc) see symbols hidden.
however, if run strings
linux tool on shared library, can see of symbols exposed. made sure don't print of symbols in messages, still somehow prints symbols expect stripped.
so, question is, how can hide symbols strings
command line tool in linux? appreciated.
edit: using strip -strip--all
hide static symbols , enable -fvisibility=hidden
compile flag hide unneeded dynamic symbols.
taken man strings
:
description
for each file given, gnu
strings
prints printable character sequences @ least 4 characters long.
the difference between strings
, tools mentioned (readelf
, objdump
, etc) rely on dwarf information embedded in elf object, whereas strings
utility outputs any printable sequence binary data (dwarf unrelated).
how can hide symbols strings
utility: this of help.
Comments
Post a Comment