* striping some libs and modules
@ 2007-01-19 16:21 Patrick Fischer
0 siblings, 0 replies; only message in thread
From: Patrick Fischer @ 2007-01-19 16:21 UTC (permalink / raw)
To: openembedded-devel
Hello
I would like to discuss about striping some libs and modules.
I know i can't stip everything like object symbols,
but here is my stip suggestion:
mipsel-linux-strip -g -S -d --strip-debug $FILES
mipsel-linux-strip --remove-section=.comment --remove-section=.note
--strip-unneeded $FILES
It will remove all debug, comment, note and unnedded code.
First of all there is the libstdc++
#ls -l tmp/rootfs/usr/lib/libstdc++.so.5.0.6
-rwxr-xr-x 1 pf pf 4636996 Jan 19 16:41
tmp/rootfs/usr/lib/libstdc++.so.5.0.6
#mipsel-linux-strip -g -S -d --strip-debug tmp/rootfs/usr/lib/libstdc++.so.5
#ls -l tmp/rootfs/usr/lib/libstdc++.so.5.0.6
-rwxr-xr-x 1 pf pf 1249844 Jan 19 16:41
tmp/rootfs/usr/lib/libstdc++.so.5.0.6
#mipsel-linux-strip --remove-section=.comment --remove-section=.note
--strip-unneeded tmp/rootfs/usr/lib/libstdc++.so.5.0.6
#ls -l tmp/rootfs/usr/lib/libstdc++.so.5.0.6
-rwxr-xr-x 1 pf pf 1029184 Jan 19 16:41
tmp/rootfs/usr/lib/libstdc++.so.5.0.6
it was 4636996 byte, after striping it is only 1029184 byte
This is very much!
Can any body tell my why i shouldn't do this?
There are a log of libs and modules which are not stiped.
Go to your rootfs and call this line to see which files are not stiped:
find . -exec file '{}' \; | grep "not stripped"
I think there is potential. I have tested it quickly. Works fine until now.
Best regards
Patrick Fischer
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-19 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19 16:21 striping some libs and modules Patrick Fischer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.