This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shared library initializers
- To: Carlo Wood <carlo at alinoe dot com>
- Subject: Re: Shared library initializers
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- Date: Thu, 3 May 2001 10:09:29 -0400
- Cc: Jeff Parker <JEFFREY dot H dot PARKER at saic dot com>, gcc at gcc dot gnu dot org
- References: <3AF1551E.535FBA1E@mtg.saic.com> <20010503155339.A2658@alinoe.com>
Hi,
This information applies for Linux.
Read the man page for dlopen.
"If the library exports a routine named _init, then that
code is executed before dlopen returns."
Read the man page for dlclose.
"If the dynamic library exports a routine named _fini"
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net