There are no symbols of static library files or functins in a dynamic library(.so) file.
I am using ubuntu 18.04 and 12.04 system. I created an object file from cpp file with -fPIC option than the created static library (.a). After that I created a dynamic library using a command :g++ -shared -I(include path) -L(other library path) -l(librarys) -o filename.so -Wl,-soname,filename.so staticlib.a" I show symbol created in 12.04 ubuntu system but not in 18.04 system. I show so file created by there no symbols in so file. we can check it using nm -g filename .so.
I got this type of result in nm command in 18.04 system if I try with 12.04 it give me whole sysmbols of all cpp files.
$ nm -g libPJ.so
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
0000000000201020 B __bss_start
w __cxa_finalize
w __gmon_start__
0000000000201020 D _edata
0000000000201028 B _end
000000000000052c T _fini
0000000000000410 T _init