This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Global constructors
- From: Jie Zhang <zhangjie at magima dot com dot cn>
- To: Tiago Stein D'Agostini <tiago at lisha dot ufsc dot br>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 29 Oct 2003 09:47:47 +0800
- Subject: Re: Global constructors
- References: <Pine.LNX.4.44.0310282147070.9395-100000@elf.lisha.ufsc.br>
Tiago Stein D'Agostini wrote:
But I need to make it to call the global constructors (a call to it just
before call to main). Unfortunatelly I am not able to put a call to __do_global_ctors_aux (LD indicates an undefined
reference) even the __do_global_ctors_aux being there at the object file.
Although __do_global_ctors_aux exist in the object file, Maybe it is not
global. You'd better give out the link command line and the output of
readelf or nm for the object file.
Jie