This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Shared library initializers


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          


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