• 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: __attribute__((visibility("default")) operator new
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __attribute__((visibility("default")) operator new


  • Subject: Re: __attribute__((visibility("default")) operator new
  • From: Howard Hinnant <email@hidden>
  • Date: Sun, 22 Jan 2006 13:21:13 -0500

On Jan 22, 2006, at 11:01 AM, Paul Carnine wrote:

Folk:

In gcc4, operator new() is defined in <new> as visibilty("default").

If we override operator new(), our override gets exported; our operator
new() is called by the OS... With very bad results.


Please does anyone have any ideas how to make our operator new() "hidden"?

If we set it in our source as hidden, then the compiler warns that the
attribute is ignored (since it was previously defined in <new> as "default")

You can put this:

You can list a file such as unexported.exp in your "Unexported Symbols File". That file should contain:

__Znwm
__Znwm.eh
__ZdlPv
__ZdlPv.eh

Alternatively, you can create a file registered with "Exported Symbols File" which does not contain the above symbols.

If you're working from the command line, the flags are:

-unexported_symbols_list <filename>
-exported_symbols_list <filename>

-Howard

_______________________________________________
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: __attribute__((visibility("default")) operator new
      • From: Howard Hinnant <email@hidden>
References: 
 >__attribute__((visibility("default")) operator new (From: Paul Carnine <email@hidden>)

  • Prev by Date: Virtual inheritance member display bug?
  • Next by Date: Re: Virtual inheritance member display bug?
  • Previous by thread: __attribute__((visibility("default")) operator new
  • Next by thread: Re: __attribute__((visibility("default")) operator new
  • Index(es):
    • Date
    • Thread