Problem with static and global data initialization

Venkata, Bulusu (IE10) Venkata.Bulusu@honeywell.com
Thu May 22 06:50:00 GMT 2003


I have an exe built for i386 by gnu tools (gcc and ld)which is loaded
into the RAM by a loader. The problem is that all the initialized
static and global data contain junk. I've even tried to have my own ld
linker script which defines the different sections and also wrote the
initialization code in the file ctr0.o(i.e. making the ".bss" data all
zeroes and copying all ".data" section info into RAM). All these steps
have failed. Where may I have gone wrong?

Thank You
Sudhakar

"  This e-mail, and any attachments thereto, are intended only for use by
the addressee(s) named herein and contain Honeywell confidential
information. If you are not the intended recipient of this e-mail, you are
hereby notified that any dissemination, distribution or copying which
amounts to misappropriation of this e-mail and any attachments thereto, is
strictly prohibited. If you have received this e-mail in error, please
immediately notify me and permanently delete the original and any copy of
any e-mail and any printout thereof." 



More information about the Gcc-help mailing list