[PATCH] libkdeinit symbol pruning

Karl Vogel karl.vogel at seagha.com
Sun Jul 18 16:57:04 CEST 2004


On Sunday 18 July 2004 16:25, Karl Vogel wrote:
> It seems that the extra symbol problem is not only restricted to kcm
> plugins:
>
> $ objdump -CT /opt/kde/lib/libkdeinit_*.so|egrep "g +DF .text"|grep -v
> kdemain|wc -l 7682

Time for another before and after... This is a rebuild of kdebase with the
patch:

Before:

$ du -sk /opt/kde/lib/libkdeinit_*.so | awk ' { total += $1; } END { print "Total " total;}'
Total 39164

After:

$ du -sk /opt/kde/lib/libkdeinit_*.so | awk ' { total += $1; } END { print "Total " total;}'
Total 38396

Result: 768Kb saved.


NOTE: all libs were prelinked again before running the stats.. as prelink
increases the filesize also.


Since I only rebuild kdebase, there are still some kdeinit libs with extra symbols:

$ objdump -CT /opt/kde/lib/libkdeinit_*.so|egrep "g +DF .text"|grep -v kdemain|wc -l
2034



More information about the Kde-optimize mailing list