• 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: what's supposed to get [dead] stripped?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: what's supposed to get [dead] stripped? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Getting xCode to use the correct public / private key
  • Next by Date: Re: Seeking advice on debugging "real time" programs.
  • Previous by thread: Re: what's supposed to get [dead] stripped?
  • Next by thread: Re: Xcode and ccache
  • Index(es):
    • Date
    • Thread