C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2009, 02:31 PM   #1
Registered User
 
Join Date: Dec 2007
Posts: 43
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.
Chris87 is offline   Reply With Quote
Old 07-05-2009, 04:46 PM   #2
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,117
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
given.
The man page also specifies the "--strip-debug" switch.
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 07-05-2009, 08:04 PM   #3
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,357
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?
__________________
"Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot
brewbuck is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22