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: Global constructors


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


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