From: Nicholas Nethercote Date: Tue, 26 Oct 2004 17:03:54 +0000 (+0000) Subject: Fix bad undefined value error, thanks to Tom. X-Git-Tag: svn/VALGRIND_3_0_0~1439 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a515924da476659b088c83523049bf69fd93444;p=thirdparty%2Fvalgrind.git Fix bad undefined value error, thanks to Tom. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2857 --- diff --git a/coregrind/stage1.c b/coregrind/stage1.c index 9d66d20af8..3bb9e708b9 100644 --- a/coregrind/stage1.c +++ b/coregrind/stage1.c @@ -259,6 +259,7 @@ static void main2(void) int *esp; char buf[strlen(valgrind_lib) + sizeof(stage2) + 16]; + info.exe_end = PGROUNDDN(init_sp); #ifdef HAVE_PIE info.exe_base = ROUNDDN(info.exe_end - 0x02000000, 0x10000000); assert(info.exe_base >= PGROUNDUP(&_end)); @@ -270,7 +271,6 @@ static void main2(void) info.exe_base = PGROUNDUP(&_end); info.map_base = KICKSTART_BASE + 0x01000000; #endif - info.exe_end = PGROUNDDN(init_sp); info.argv = NULL;