Global Objects initialization Problem.......

James E Wilson wilson@specifixinc.com
Tue May 3 23:23:00 GMT 2005


Satendra Pratap wrote:
> I am using a cross compiler "sparclet-aout-gcc". I have written my own
> main function and does not link to libgcc's main function while
> linking is done. I m not able to initialize the global objects The
> generated executable format is "a.out".

You have so much modified stuff here that it is unlikely a volunteer 
will be willing or able to help you.  You will have to debug this 
yourself.  Step through your initialization functions in gdb to see why 
the global constructor isn't being called.  Try using objdump to look at 
the program, and make sure the appropriate sections have appropriate data.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list