Thread: GNU strip inquiry

  1. #1
    Registered User Chris87's Avatar
    Join Date
    Dec 2007

    GNU strip inquiry

    I've been noticing when I compile executables and libraries in non-debug mode, the strip command still tends to reduce their size. I don't get it. Isn't strip removing debug symbols? Why are there debug symbols in a non-debug binary?

    I've also tried the executables after stripping them and they report to be damaged. Although I was able to reinstall them, the fact that strip removes symbols from and damages non-debug binaries throws my whole perception of reality into disarray.

    Okay, so I'm exaggerating, but I'm not really incented to do any more coding until I get this fixed.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Well, the man page is pretty clear.

    Quote Originally Posted by man strip
    GNU strip discards all symbols from object files objfile. The list of
    object files may include archives. At least one object file must be
    The man page also specifies the "--strip-debug" switch.

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Portland, OR
    Quote Originally Posted by Chris87 View Post
    Okay, so I'm exaggerating, but I'm not really incented to do any more coding until I get this fixed.
    Because of your own misunderstanding of what a particular tool does, you're going to give up programming?
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GNU Build System and referring to Libraries
    By orwb in forum Linux Programming
    Replies: 7
    Last Post: 12-06-2007, 03:41 AM
  2. about strip
    By George2 in forum Tech Board
    Replies: 3
    Last Post: 08-28-2006, 10:09 AM
  3. GNU Public Domain Compiler
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-22-2002, 06:55 AM
  4. Gnu C++
    By Jaguar in forum A Brief History of
    Replies: 2
    Last Post: 07-19-2002, 11:42 AM
  5. gnu g++
    By pete777 in forum C++ Programming
    Replies: 6
    Last Post: 04-20-2002, 12:53 PM