• 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: Strip command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strip command


  • Subject: Re: Strip command
  • From: Robert Purves <email@hidden>
  • Date: Mon, 1 Sep 2008 17:29:57 +1200


Jakob G wrote:
> I am experimenting on a Carbon product and I don't want to show the
> symbol table of the product, which can be seen using nm command in
> terminal. I have built the product in Xcode 3.0 and after the
> building I have executed strip command on the executable through
> terminal.
>
> If you build the product in Tiger with Xcode 2.x version and if you
> use strip command that works fine by not displaying the text
> content of the symbol table on nm command execution. But if you
> build it in Leopard Xcode 3.x and use strip command that doesn't
> work i.e text content of the symbol table will be shown as was in
> original built product. Even if the Xcode 3.x built product which is
> been stripped in Tiger does not give the expected behavior.
>
> Any input is greatly appreciated..


The following terminal session shows the output of nm before and after
strip. This is in OS X 10.5. The strip command works as expected.


< snip >
Note the -u -r options for strip. How does your attempted use of strip
differ?


strip /Users/admin/Desktop/Test.app/Contents/MacOS/Test
When I use this in Tiger it used to work fine by not showing the symbol table on nm command execution in terminal.
However in Leopard the same strip command does not work so that even after the nm command execution the symbol table is shown as in prior strip command execution.
Another add up is Test.app has 2 staticlibs..

strip with no arguments works as expected for me, even on an exectuable built with a static *.a library.


If you compare the output of nm before and after strip, is there a difference or does nm do nothing?
Please post the output of nm after strip, showing some symbols that you think should have been stripped.


Robert P.

_______________________________________________
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


References: 
 >Re: Strip command (From: Jakob G <email@hidden>)

  • Prev by Date: Xcode locking up in building
  • Previous by thread: Re: Strip command
  • Next by thread: Help needed: expected unqualified-id in switching from 10.4 to 10.5 SDK
  • Index(es):
    • Date
    • Thread