http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55693



Aldy Hernandez <aldyh at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |patrick.marlier at gmail

                   |                            |dot com



--- Comment #20 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2013-01-23 
04:34:26 UTC ---

crttme.o comes from libgcc/config/darwin-crt-tm.c, which has:



/* Provide dummy functions to satisfy linkage for versions of the Darwin 

   tool-chain that that can't handle undefined weak refs at the link stage.

   ??? Define these dummy functions only when !HAVE_ELF_STYLE_WEAKREF. */



extern void *__cxa_allocate_exception (size_t) WEAK;

...

...

void *__cxa_allocate_exception (size_t s UNUSED) { return NULL; }



This looks like the NULL returning __cxa_allocate_exception that is causing all

this grief, and came from Patrick Marlier and Iain Sandoe's patch here:



http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00851.html



Again, I'm a Darwin wimp.  Anyone care to comment?

Reply via email to