Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
- Subject: Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
- From: Ken Thomases <email@hidden>
- Date: Wed, 19 Aug 2009 00:46:42 -0500
On Aug 18, 2009, at 6:04 PM, Jerry Krinock wrote:
No options is fine for the main and auxiliary executables, but for
loadable bundles and private frameworks I had to use the -x option;
otherwise the app will crash on launch. The -x option is apparently
equivalent to setting the Strip Style = "Non-Global Symbols", which
is what I have used for stripping my private frameworks in Xcode. I
say "apparently" because I could not determine this from reading man
strip(1)! Instead, I reverse-engineered by watching the strip(1)
call in the Build Transcript in Xcode with various Strip Style
settings.
You need not have guessed nor reverse-engineered. In an Xcode build
settings dialog, select the Strip Style line and bring up the Research
Assistant. In the Abstract, it says:
Defines the level of symbol stripping to be performed on the linked
product of the build. The default value is defined by the target's
product type. [STRIP_STYLE]
All Symbols - Completely strips the binary, removing the symbol
table and relocation information. [all, -s]
Non-Global Symbols - Strips non-global symbols, but saves external
symbols. [non-global, -x]
Debugging Symbols - Strips debugging symbols, but saves local and
global symbols. [debugging, -S]
Most of the build settings that correspond to flags for tools will
document the flags in this way.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden