• 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: Jakob G <email@hidden>
  • Date: Sat, 30 Aug 2008 21:51:23 -0700 (PDT)

Hi there

I am using the strip command directly on my executable without any options like -u -r etc.

For example in the terminal I used to write

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.

Please note I am using Xcode 3.0 in Leopard, even tried with latest Xcode versions.

Another add up is Test.app has 2 staticlibs..

Thanks in advance for any input..

Regards

Jakob

----- Original Message ----
From: Robert Purves <email@hidden>
To: email@hidden
Cc: Jakob G <email@hidden>
Sent: Monday, 25 August, 2008 11:09:23 AM
Subject: Re: Strip command


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.



Get an email ID as email@hidden or email@hidden. Click here.
 _______________________________________________
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: Strip command
      • From: Robert Purves <email@hidden>
    • Re: Strip command
      • From: "Justin C. Walker" <email@hidden>
  • Prev by Date: Re: error exit
  • Next by Date: Re: Strip command
  • Previous by thread: Re: Strip command
  • Next by thread: Re: Strip command
  • Index(es):
    • Date
    • Thread