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


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

Re: More on entry point option for ld


On Fri, Jun 29, 2001 at 06:28:05PM +0200, Carlo Wood wrote:
> And what if you want to do initialization of a shared library
> *after* initialization of libc and libstdc++ but *before*
> any constructor of global objects of other libraries (or the
> main program) are called?

You're screwed.  Shared library initialization happens *before*
any code from the application is run at all.

You can get sort of close with an LD_PRELOAD library that runs
your initialization code from a constructor.


r~


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