You are not logged in.

#1 2008-10-28 02:30:00

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 4,705
Website

Stripping Binaries

Hi all smile

Who strips their binaries? I stripped gedit yesterday and it shrunk to nearly 1/3 of the original size. I'm yet to test the speed difference (any suggestions on how to do that?), but it certainly feels snappier. If nothing else, it's saving disk space smile

root ~ # ll /usr/bin/gedit
-rwxr-xr-x 1 root root 4.1M 2008-09-28 03:54 /usr/bin/gedit
root ~ # strip /usr/bin/gedit
root ~ # ll /usr/bin/gedit
-rwxr-xr-x 1 root root 1.8M 2008-10-28 13:26 /usr/bin/gedit
root ~ #

Offline

#2 2008-10-28 02:45:42

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: Stripping Binaries

Hmmm... makepkg strips binaries and libraries by default.  I wonder why that was not stripped?

Offline

#3 2008-10-28 03:44:06

B-Con
Member
From: Frisco, TX
Registered: 2007-12-17
Posts: 549
Website

Re: Stripping Binaries

Interesting.

.:[ b-con@beacon : 20:41:04 : ~/Desktop ]:.
$ for BIN in gedit pcmanfm terminal dhcpcd ls clear xchat rtorrent openbox ; do cp `which $BIN` /tmp/ ; ls -l /tmp/$BIN ; strip /tmp/$BIN ; ls -l /tmp/$BIN ; done
-rwx------ 1 b-con users 4241080 2008-10-27 20:42 /tmp/gedit
-rwx------ 1 b-con users 1827436 2008-10-27 20:42 /tmp/gedit
-rwx------ 1 b-con users 396808 2008-10-27 20:42 /tmp/pcmanfm
-rwx------ 1 b-con users 396808 2008-10-27 20:42 /tmp/pcmanfm
-rwx------ 1 b-con users 148264 2008-10-27 20:42 /tmp/terminal
-rwx------ 1 b-con users 148264 2008-10-27 20:42 /tmp/terminal
-rwx------ 1 b-con users 58272 2008-10-27 20:42 /tmp/dhcpcd
-rwx------ 1 b-con users 58272 2008-10-27 20:42 /tmp/dhcpcd
-rwx------ 1 b-con users 97340 2008-10-27 20:42 /tmp/ls
-rwx------ 1 b-con users 97340 2008-10-27 20:42 /tmp/ls
-rwx------ 1 b-con users 3580 2008-10-27 20:42 /tmp/clear
-rwx------ 1 b-con users 3580 2008-10-27 20:42 /tmp/clear
-rwx------ 1 b-con users 582840 2008-10-27 20:42 /tmp/xchat
-rwx------ 1 b-con users 582840 2008-10-27 20:42 /tmp/xchat
-rwx------ 1 b-con users 794868 2008-10-27 20:42 /tmp/rtorrent
-rwx------ 1 b-con users 794868 2008-10-27 20:42 /tmp/rtorrent
-rwx------ 1 b-con users 303592 2008-10-27 20:42 /tmp/openbox
-rwx------ 1 b-con users 303592 2008-10-27 20:42 /tmp/openbox

Gedit's the only thing I note that was not stripped. The before and after file sizes for everything else remain the same size after stripping.

[edit]
Replaced my aliases with their real commands.

Last edited by B-Con (2008-10-28 08:13:25)


- "Cryptographically secure linear feedback based shift registers" -- a phrase that'll get any party started.
- My AUR packages.
- I use i3 on my i7.

Offline

#4 2008-10-28 05:50:51

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,616

Re: Stripping Binaries

please open a bugreport and note the pkgver+pkgrel.

you should run "file" over some binaries to check if this is gnome related (maybe JGC's chroot settings) or a more general issue.

Offline

#5 2008-10-28 07:47:23

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 4,705
Website

Re: Stripping Binaries

Uhh, ok!! Not the response I expected, but cool smile

Good to know about makepkg anyway wink

Bug Report: http://bugs.archlinux.org/task/11907

Last edited by fukawi2 (2008-10-28 07:47:50)

Offline

Board footer

Powered by FluxBB