Add missing dcrt0.cc patch to previous commit

* dcrt0.cc (child_info_fork::alloc_stack): Don't set stackaddr to 0.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2015-12-03 12:38:19 +01:00
parent 89e86492b3
commit 600c445127
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-12-03 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (child_info_fork::alloc_stack): Don't set stackaddr to 0.
2015-12-03 Corinna Vinschen <corinna@vinschen.de>
* child_info.h (struct child_info): Add member from_main.

View File

@ -486,7 +486,6 @@ child_info_fork::alloc_stack ()
guardpage);
NtCurrentTeb()->Tib.StackLimit = stacklimit;
}
stackaddr = 0;
/* This only affects forked children of a process started from a native
64 bit process, but it doesn't hurt to do it unconditionally. Fix
StackBase in the child to be the same as in the parent, so that the