Re: [PATCH] libkdeinit symbol pruning

Karl Vogel <[email protected]>
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.