Date: Mon, 2 Sep 1996 08:22:30 -0400 From: dj (DJ Delorie) Message-Id: <199609021222.IAA27842@delorie.com> To: sandmann AT clio DOT rice DOT edu CC: djgpp-workers AT delorie DOT com In-reply-to: <9609020600.AA13669@clio.rice.edu> (sandmann@clio.rice.edu) Subject: Re: make problems > My guess is that this is the known bug in the crt0 code which malloc's > the stubinfo structure. In rare instances with exactly the right code > size, it ends up at least partially in a different memory zone. We either > need to not malloc the structure, or in the final cleanup code save the > values on the stack before freeing the memory. %edx was 0x20000 - a conveniently round number. What's the bug? Is there an easy fix? > The stack is set to the small value before exit since we are freeing > the stack. But is the stack *inside* crt0's code space?