This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]