Help needed with linking
Joel Coltoff
joel@wmi.com
Tue May 18 15:56:00 GMT 1999
>> 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.
More information about the crossgcc
mailing list