This is the mail archive of the
crossgcc@cygnus.com
mailing list for the crossgcc project.
Re: Help needed with linking
- To: crossgcc@cygnus.com
- Subject: Re: Help needed with linking
- From: Joel Coltoff <joel@wmi.com>
- Date: Tue, 18 May 1999 17:00:41 -0400 (EDT)
- Reply-To: crossgcc@cygnus.com
>> Have you tried initializing x?
>>
>> Since it is uninitialized, x is probably being allocated to .bss or
>> COMMON. Putting an initializer on x should cause it to be allocated
>> in .data. You might try that if you haven't already.
>>
>> Art
That solves the problem for the example but that was just to illustrate
the problem. The real code looks like this.
FILE *diagp = stdout;
I've got a little less control over that than I do with a simple
integer. I'd hate to have to rewrite the startup module to initialize
every global value. I may need to do that but that doesn't mean
I have to like it.
- Joel
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.