delorie.com/archives/browse.cgi | search |
From: | sandmann AT clio DOT rice DOT edu (Charles Sandmann) |
Message-Id: | <9609020600.AA13669@clio.rice.edu> |
Subject: | Re: make problems |
To: | dj AT delorie DOT com (DJ Delorie) |
Date: | Mon, 2 Sep 1996 01:00:29 -0600 (CDT) |
Cc: | djgpp-workers AT delorie DOT com |
In-Reply-To: | <199609020212.WAA01945@delorie.com> from "DJ Delorie" at Sep 1, 96 10:12:55 pm |
> Note: esp is corrupt; it's set to 0x127c. A modified mcount.c shows > that make's last libc call was to xmalloc() from target_environment(). 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. The stack is set to the small value before exit since we are freeing the stack.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |