Dynamic symbol table
Karl Vogel <[email protected]>
| Newsgroups | gmane.comp.kde.devel.optimize |
|---|---|
| Message-ID | <6DED3619289CD311BCEB00508B8E133601A689FA@nt-server2.antwerp.seagha.com> |
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.