• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
      • From: Jonas Maebe <email@hidden>
References: 
 >Recommendations for strip(1)? Was: gdb: "No line number info...." (From: Jerry Krinock <email@hidden>)
 >Re: Recommendations for strip(1)? Was: gdb: "No line number info...." (From: Alastair Houghton <email@hidden>)
 >Re: Recommendations for strip(1)? Was: gdb: "No line number info...." (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Some simple questions I couldn't find answers to in the documentation
  • Next by Date: Re: Added Framework has a Configuration (Release/Debug) ?
  • Previous by thread: Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
  • Next by thread: Re: Recommendations for strip(1)? Was: gdb: "No line number info...."
  • Index(es):
    • Date
    • Thread