On Thu, Jan 23, 2014 at 10:51:41PM +0100, Joerg Sonnenberger wrote: > > Something like the attached? > > (Can't currently test, too many other local changes.) > > I think it is: > __cxa_atexit(autofree, NULL, &_DYNAMIC); Should be: __dso_handle with: extern __attribute__((visibility("hidden"))) void *__dso_handle; Joerg