Date: Wed, 19 Dec 2001 21:46:46 +0100 From: Bernd Walter <ticso@cicely9.cicely.de> To: Maxime Henrion <mux@qualys.com> Cc: freebsd-hackers@freebsd.org Subject: Re: init code in dynamic libraries Message-ID: <20011219204645.GB66211@cicely9.cicely.de> In-Reply-To: <20011219200620.A281@nebula.noos.fr> References: <20011219184930.GA66211@cicely9.cicely.de> <20011219200620.A281@nebula.noos.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 19, 2001 at 08:06:20PM +0100, Maxime Henrion wrote: > Bernd Walter wrote: > > How can I add initalisation code to a library without needing to > > call a function in the using application? > > What I saw is that libc does something like this but havn't found > > the starting point of this. > > There are two special functions for that : _init() which will be called > when the object is loaded, and _fini() which will be called when it is > released. I can see that symbol defined in libc.so.5 but no reference in the libc source code. All I see are several *_init functions. Are they all called from within an autocreated _init function? If yes in which order? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011219204645.GB66211>