LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2011, 01:24 PM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Stripping binaries


There seems to be a lot of flags in the strip tool (for stripping binaries). Is it enough to run strip --strip-all, or is there more one can do to reduce the size of the binary?

I have GNU strip 2.20.1.

Last edited by hydraMax; 07-30-2011 at 01:25 PM.
 
Old 07-30-2011, 01:49 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Never use strip-all, it may cause some binaries to stop working. I always use only '--strip-unneeded'.

Instead try:
http://upx.sourceforge.net/#downloadupx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stripping lines versus stripping bytes in a bash subshell. poorman_installer Programming 9 10-21-2009 08:36 AM
Kernel-stripping Dinithion Linux - General 2 05-29-2009 09:58 AM
Stripping down the kernel Oxagast Linux - Kernel 5 06-22-2006 04:23 PM
stripping ^m recursively. SaxiDawg Linux - General 1 06-07-2006 04:27 AM
Stripping down to basics sketchyfrog Linux - Newbie 4 02-24-2004 08:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration