Dynamic symbol table

Karl Vogel karl.vogel at seagha.com
Thu Jul 15 15:21:05 CEST 2004


I noticed that a lot of the .so files have big dynamic symbol tables, as if
everything is exported. Wouldn't it be better to only export the symbols
that are really required?!

Example:

$ objdump -CT kio_http.so|awk '/DF .text/'|wc -l
233
$ objdump -CT kcm_kwindecoration.so |awk '/DF .text/'|wc -l
238
$ objdump -CT kabc_imap.so |awk '/DF .text/'|wc -l
85

Don't most of these only need 1 exported C function?! 


It looks like the .so's for kdeinit do it correctly:

$ objdump -CT konsole.so |awk '/DF .text/'
00000660 g    DF .text  0000002d  Base        kdeinitmain



Karl.




More information about the Kde-optimize mailing list