Re: ld strip is now obsolete?
Re: ld strip is now obsolete?
- Subject: Re: ld strip is now obsolete?
- From: Glen Low <email@hidden>
- Date: Sun, 4 May 2008 22:03:26 +0800
Jean, All
On 04/05/2008, at 6:06 PM, Jean-Daniel Dupas wrote: Le 4 mai 08 à 08:14, Glen Low a écrit : Hi All
I'm in the middle of the optimization phase of one of my projects and I was exploring various command-line strip options.
I took a look at the old ld strip options in Leopard, but the man page now says:
-s Completely strip the output, including removing the symbol table. This file format variant is no longer supported. This option is obsolete.
Since the strip man page says ld does better stripping, how do I access the stripping in ld in Leopard?
From my personal experience, ld do better stripping because it is able to strip dead-code. I find the combination of -exported_symbols_list and -dead_strip very efficient to strip dead code and reduce library size. Using thoses options and then using strip give me very good results.
I do get good results with -dead_strip and then using the strip command. I've been thinking of using -exported_symbols_list, how would you generate one automatically from source or object code?
But the strip man page says it doesn't do relocation stripping which ld does, and the old Tiger (?) ld used to allow -s (and related options) to do this, but the Leopard ld says these are now obsolete?
Cheers, Glen Low
--- pixelglow software | simply brilliant stuff www.pixelglow.com aim: pixglen
|
_______________________________________________
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