This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Will strip remove what gcc adds with -g?
- From: Andreas Schwab <schwab at suse dot de>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Sun, 16 Dec 2007 19:58:06 +0100
- Subject: Re: Will strip remove what gcc adds with -g?
- References: <b609cb3b0712161049g4bd81df1y585dbdde51772a0f@mail.gmail.com>
NightStrike <nightstrike@gmail.com> writes:
> As per the title, using gcc -g adds debug information. Will strip
> remove this information?
It will even remove more than that. Use "strip -g" if you want to strip
only debug information.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."