delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/20/14:54:30

Date: Tue, 20 Sep 94 11:06:28 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: enrico AT max DOT tiac DOT net
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: strange linker behavior

> SE> I would have expected to get a 0 as output, and in fact this was the
> SE> case until v1.11m5. The current version prints a large negative
> SE> number...
>
>    I don't think that there's any provision in the C language for what 
> uninitialized variables
> start out as.  delay could end up as anything!  

Uninitialized variables that end up in the BSS section (most do) are
guaranteed to be initialized to zero.  The problem is that the delay
in libc causes the symbol to NOT end up in the BSS section, so all
bets are off.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019