On Fri, 28 Feb 2014, Marc Glisse wrote:
I haven't looked at it closely, but maybe asking the linker directly (instead of telling gcc to tell the linker), for instance through a map file, could help?
Sorry, s/map file/version script/. Something like: { local: _Znwm; }; and add -Wl,--version-script=somefilename to the command line.
The simplest is probably to use asm("other_name_for_new") on a declaration of new, so it is still visible but with a different name...
-- Marc Glisse