• 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: problem with operator new
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with operator new


  • Subject: Re: problem with operator new
  • From: Marc Epard <email@hidden>
  • Date: Wed, 03 May 2006 09:56:37 -0500
  • Thread-topic: problem with operator new

on 5/3/06 3:29 AM, Chris Bergmann wrote:

> I¹m having a problem with an overridden global-scope operator new on
> the intel macs. It appears that a different link order is used on the
> intel macs (both natively and in rosetta) than what is used on the
> powerpc. The result of this is that the OS libraries are sometimes
> using our overridden operator new, causing a crash when the version
> of Œnew¹ and Œdelete¹ used don¹t match.

We encountered the same problem and a colleague worked around it with the
UNEXPORTED_SYMBOLS_FILE build setting.  We specify a file we call
Unexported.txt which contains the list of entry points below.  We set
UNEXPORTED_SYMBOLS_FILE on each target that produces an executable and links
to our static library that contains operator new and delete.

-Marc

__Znwm
__Znwm.eh
__ZnwmN3Ank10NewNoTrackE
__ZnwmN3Ank10NewNoTrackE.eh
__ZnwmN3Ank14NewNoThrowZeroE
__ZnwmN3Ank14NewNoThrowZeroE.eh
__ZnwmN3Ank14NewNoTrackZeroE
__ZnwmN3Ank14NewNoTrackZeroE.eh
__ZnwmN3Ank17NewNoThrowNoTrackE
__ZnwmN3Ank17NewNoThrowNoTrackE.eh
__ZnwmN3Ank21NewNoThrowNoTrackZeroE
__ZnwmN3Ank21NewNoThrowNoTrackZeroE.eh
__ZnwmN3Ank7NewZeroE
__ZnwmN3Ank7NewZeroE.eh
__ZnwmPv
__ZnwmPv.eh
__ZnwmPvN3Ank11CtorDtorNewE
__ZnwmPvN3Ank11CtorDtorNewE.eh
__ZnwmRKSt9nothrow_t
__ZnwmRKSt9nothrow_t.eh
__ZdlPv
__ZdlPv.eh
__ZdlPvN3Ank10NewNoTrackE
__ZdlPvN3Ank10NewNoTrackE.eh
__ZdlPvN3Ank14NewNoThrowZeroE
__ZdlPvN3Ank14NewNoThrowZeroE.eh
__ZdlPvN3Ank14NewNoTrackZeroE
__ZdlPvN3Ank14NewNoTrackZeroE.eh
__ZdlPvN3Ank17NewNoThrowNoTrackE
__ZdlPvN3Ank17NewNoThrowNoTrackE.eh
__ZdlPvN3Ank21NewNoThrowNoTrackZeroE
__ZdlPvN3Ank21NewNoThrowNoTrackZeroE.eh
__ZdlPvN3Ank7NewZeroE
__ZdlPvN3Ank7NewZeroE.eh
__ZdlPvRKSt9nothrow_t
__ZdlPvRKSt9nothrow_t.eh
__ZdlPvS_
__ZdlPvS_.eh

 _______________________________________________
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: problem with operator new
      • From: Christoph Bergmann <email@hidden>
References: 
 >problem with operator new (From: Chris Bergmann <email@hidden>)

  • Prev by Date: Re: File name limited to 31 characters on Mac OS X?
  • Next by Date: Re: File name limited to 31 characters on Mac OS X?
  • Previous by thread: Re: problem with operator new
  • Next by thread: Re: problem with operator new
  • Index(es):
    • Date
    • Thread