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]
Other format: [Raw text]

Re: dlopen() does not call static constructors on HP-UX


>>>>> Harri Pasanen writes:

Harri> It is possible to make the above process fully automatic, but it 
Harri> requires first building the shared lib, looking if the _GLOBAL__FI_* 
Harri> symbol is present and then rebuilding it.

Harri> So all this is done without any modifications to gcc itself.   Can you 
Harri> see any pitfalls with my approach?   I'll let you know if I run into 
Harri> any problems.

	You do not need to build the library twice.  GCC's collect2 knows
the name of the function.  I would suggest looking at how I enabled
something similar in collect2.c for AIX.  Look for LD_INIT_SWITCH.

David


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