delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/12/10:59:25

Message-Id: <4.3.1.1.20000912162729.00bfb3c0@mdh.se>
X-Sender: csg AT mdh DOT se
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Tue, 12 Sep 2000 16:59:26 +0100
To: djgpp AT delorie DOT com
From: Christer Sandberg <christer DOT sandberg AT mdh DOT se>
Subject: startup-code
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Declaring a global identifier named 'end' will clatch with some 
startup/exit function or data. Internal data should have underscore as prefix.
Program built from the following code will crash on exit.
int end[1000];
int main(void)
{
    memset(end, 0, sizeof(int)*1000)
    return 0;
}

Unfortunately I don't know which version of DJ I use, and I don't even know 
how do find it out, but the test case is obviously simple. (the files libc 
and ctr0 seems to be dated 1998)

/cs

- Raw text -


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