Paul Davis wrote on Thu, 30-Jun-2005:
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))
{
}
The proper syntax is:
void __attribute__((constructor)) myinitfunction() {}
void __attribute__((destructor)) myfinifunction() {}
jlc