[oe] striping some libs and modules
Patrick Fischer
fischer at 4g-systems.com
Fri Jan 19 16:21:56 UTC 2007
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
More information about the Openembedded-devel
mailing list