This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -l versus dlopen()
- To: Daniel dot Walker at lhsl dot com
- Subject: Re: -l versus dlopen()
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 09 Sep 2001 23:04:15 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <OF20D3045B.EF81D323-ON88256AC0.005F86C4@lhs.com>
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