I need to calculate code size for my application. I created Three shared libs and one main application, each shared lib total size is 180K (ls -l for each file), but when I run size on each one, text segment shows 40K, for all Three the text segment total sizes are 120K, can I say total code size for all shared libs is 120K rather than total sizes all Three.
$ size --format=Berkeley libtgMgr.so.1.0
text data bss dec hex filename
40793 400 46552 87745 156c1 libtgMgr.so.1.0
$ size --format=Berkeley libbgMgr.so.1.0
text data bss dec hex filename
40001 400 46552 87745 156c1 libbgMgr.so.1.0
$ size --format=Berkeley libkgMgr.so.1.0
text data bss dec hex filename
40005 400 46552 87745 156c1 libkgMgr.so.1.0
$ size --format=Berkeley libtgMgr.so.1.0
text data bss dec hex filename
40793 400 46552 87745 156c1 libtgMgr.so.1.0
$ size --format=Berkeley libbgMgr.so.1.0
text data bss dec hex filename
40001 400 46552 87745 156c1 libbgMgr.so.1.0
$ size --format=Berkeley libkgMgr.so.1.0
text data bss dec hex filename
40005 400 46552 87745 156c1 libkgMgr.so.1.0