Mail Archives: djgpp/2000/09/14/10:30:52
Christer Sandberg (christer DOT sandberg AT mdh DOT se) wrote:
: 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)
A potential fix is to edit lib/djgpp.djl and change the line
" end = . ; _end = .;"
to
" end = . ;"
It's potential because I'm not an assembly guy and I don't know what
I'm doing. But it works for me.
Right,
MartinS
- Raw text -