[Linux-users] Strip ...
Bill Campbell
linux-sxs
Thu Aug 16 11:04:11 PDT 2007
On Thu, Aug 16, 2007, Lonni J Friedman wrote:
>On 8/16/07, Ben Duncan <linux4ms at aim.com> wrote:
>> I came across a Slackware Install script where the author was
>> using "strip --strip-unneeded" against all of the objects.
>>
>> I know that 'strip' is suppose to help reduce the size of OBJECTS, but
>> on modern systems with BIG hard drives, is that still necessary?
>
>Yes. You don't strip a binary just to reduce its size (although that
>is a valid reason, as having a big disk is a lame reason not to strip
>a binary). You strip a binary to improve its runtime performance.
>There are other reasons, such as hiding/obfuscating symbols which some
>vendors want to do.
If you're looking for runtime performance, strip the binaries when building
packages, not during installation as stripping them will render package
verfication (rpm -V) useless.
IMHO the performance gain from stripping binaries or using the Red Had
prelink, is false optimization given the speed of today's machines.
Bill
--
INTERNET: bill at celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
A government which robs Peter to pay Paul can always depend on the support
of Paul -- George Bernard Shaw
More information about the Linux-users
mailing list