Re: ld strip is now obsolete?
Re: ld strip is now obsolete?
- Subject: Re: ld strip is now obsolete?
- From: Jonas Maebe <email@hidden>
- Date: Sun, 4 May 2008 12:19:49 +0200
On 04 May 2008, at 12:06, Jean-Daniel Dupas wrote:
Le 4 mai 08 à 08:14, Glen Low a écrit :
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.
-s is independent of dead code stripping, it is about symbol and debug
information stripping. The ld -x option is still supported, but it
does not strip as well as -s used to (and it also strips less than the
separate "strip" utility, even if you start out without debug
information).
I'd also be interested in knowing how to get the new ld strip as well
as the strip utility (preferably in a way which is compatible with
older Xcode versions, because our compiler itself calls ld when it's
used outside Xcode and at this point it is merrily oblivious to the
underlying Mac OS X version or installed Xcode/Project Builder version).
Jonas
BTW: the story of "ld -s" goes somewhat like this, as far as I
remember: -s worked fine on 10.0, was broken on 10.1, fixed in 10.2,
worked fine till 10.4, and has been deprecated/removed in 10.5 (the
broken version may also have been 10.2 rather than 10.1, I'm not sure
anymore). _______________________________________________
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