This is the mail archive of the gcc-help@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: -l versus dlopen()


On Sep  7, 2001, Daniel.Walker@lhsl.com wrote:

> But if I link dynamically with dlopen()

Which flags do you pass to dlopen()?

> the program crashes while executing a global constructor in
> _do_global_ctors_aux(). Is it possible that the constructors in the library
> are reorder differently depending on how the library is loaded?

Yes, that's certainly possible.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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