The visibility (from __ attribute __(visibility("...")) and -fvisibility) of a symbol can be known from a so file
nm -C lib.so
t is hidden, T is exported(i.e. default). But how to get this information from an object file directly?
nm -C lib.o
Will always print T for non C-static symbols whatever the visibility is.