Re: what's supposed to get [dead] stripped?
Re: what's supposed to get [dead] stripped?
- Subject: Re: what's supposed to get [dead] stripped?
- From: Steve Christensen <email@hidden>
- Date: Tue, 4 Apr 2006 11:46:05 -0700
On Apr 4, 2006, at 10:58 AM, Scott Ribe wrote:
For my test case, one unused class method is not being dead-stripped,
thus directly and indirectly pulling in other local code plus Carbon
API symbols to be runtime linked.
The gcc tool chain is not able to dead strip virtual functions.
CodeWarrior
was able to do so. I bet this is the source of your problems. It
caused me
some grief too, with some intermediary classes that exist on both
server and
client side, with some functions only used on one side or the
other. I just
wound up #if'ing the specific methods to avoid pulling in
inappropriate
code.
Except that the unstripped method is not virtual.
I wrote a small test case with a class containing two methods -- one
that gets called, one that doesn't. Neither are virtual. The Carbon
API symbol that the uncalled method references is in the supposedly
dead-stripped executable when I use "nm -mg"...
steve
_______________________________________________
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