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.
-- FAReceived on Thu Jul 7 16:19:01 2005
This archive was generated by hypermail 2.1.8 : Thu Jul 07 2005 - 16:19:02 EEST