• 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, 25 Aug 2008 17:39:23 +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.


$ cat test.c
void Silly( void )
{
}

int main( void )
{
	Silly();
	return 0;
}

$ gcc test.c
$ nm a.out
0000200c D _NXArgc
00002008 D _NXArgv
00001fe6 T _Silly
00002000 D ___progname
00001fd8 t __dyld_func_lookup
00001000 A __mh_execute_header
00002004 D _environ
        U _exit
00001fee T _main
00002010 d dyld__mach_header
00001fc4 t dyld_stub_binding_helper
00001f84 T start
$ strip -u -r a.out
$ nm a.out
00001000 A __mh_execute_header
        U _exit

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

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


  • Prev by Date: Re: Info.plist Warning?
  • Next by Date: Re: Info.plist Warning?
  • Previous by thread: Strip command
  • Next by thread: Re: Strip command
  • Index(es):
    • Date
    • Thread