On Thu, Jun 30, 2005 at 02:31:04PM -0400, Paul Davis wrote:
(this only dropped into my mailbox today, for some reason)
and if you want to be really portable, don't use
_init() or _fini(),
which are officially deprecated by gcc/glibc/ld.so, and use
void
myinitfunction() __attributes__((constructor))
{
}
void
myfinifunction() __attributes__((destructor))
{
}
Looks very C++ish. Upon load, call all constructors for static
objects. Before unload, all destructors for the same.
--
FA