[PATCH] Add pre global constructors hook

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Nov 19 09:59:43 UTC 2015


Hello Aurelio,

you don't need such a patch. We already have a more flexible system to deal with such problems. It is also supported on Linux for example. You can use the constructor attribute with a priority, e.g.

void __attribute__((constructor(1000))) f(void)
{
   ...
}

Such constructors are called before the constructors without a priority.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list