This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Shared library loading, please help me
- From: matteo dot pampolini at seleniacomms dot com
- To: binutils at sources dot redhat dot com
- Date: Thu, 10 Mar 2005 16:55:33 +0100
- Subject: Shared library loading, please help me
Hello there,
just a stupid question: I noticed that the _init() function of a shared
library is called every time
an app that uses the library is launched, even though the library was
already loaded in memory.
Then, if I have a shared library that must perform some hardware
initialization only once, how
can I check this for example with an "initialized" variable? Because I
verified that every time I
load the library the variable is set to its default value.
Please help me.
Thanks in advance,
Matteo.