I don't believe it exists, but I wanted to ask for completeness. Does
a Linux SO offer an enrty point equivalent to DllMain in the Windows
world? I did find __attribute__ ((constructor)) [1], but I have not
been able to locate much practical reading material.
I'm working on a FIPS compliant module, and I'm trying to locate a
home for an automatic PowerUpSelfTest.
Thanks,
Jeffrey Walton
[1] http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
> Hi All,
>
> I don't believe it exists, but I wanted to ask for completeness. Does
> a Linux SO offer an enrty point equivalent to DllMain in the Windows
> world?
It would help of you described briefly what that function does and/or
when it is invoked.
> I did find __attribute__ ((constructor)) [1], but I have not
> been able to locate much practical reading material.
Functions marked with that attribute will be called by the startup
code before main() is invoked. It is the same mechanism that calls
constructors for static objects in C++, hence the name.
--
M�ns Rullg�rd
ma...@mansr.com