-l versus dlopen()

Alexandre Oliva aoliva@redhat.com
Sun Sep 9 19:04:00 GMT 2001


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



More information about the Gcc-help mailing list